Files
old-saburly-confighub/web/app/helpers/configuration_files_helper.rb

12 lines
252 B
Ruby
Raw Normal View History

2016-02-21 11:59:13 +01:00
module ConfigurationFilesHelper
2016-02-21 19:17:04 +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
end