created file sync

This commit is contained in:
Senad Uka
2016-02-21 19:17:04 +01:00
parent 709ce3e38c
commit ac099e3210
18 changed files with 230 additions and 28 deletions

View File

@@ -1,2 +1,11 @@
module ConfigurationFilesHelper
end
def pull_command(file)
url = pull_file_url(file)
"curl -o #{file.file_path} #{url}"
end
def push_command(file)
url = push_file_url(file)
%Q{ curl -F "content=@#{file.file_path}" #{url} }
end
end