2016-02-20 09:33:32 +01:00
|
|
|
module ApplicationHelper
|
2016-02-21 20:31:56 +01:00
|
|
|
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
|
2016-02-20 09:33:32 +01:00
|
|
|
end
|