Module: RedmineWithGitHelper

Defined in:
app/helpers/redmine_with_git_helper.rb

Instance Method Summary collapse

Instance Method Details

#export_api_curl_commandObject



4
5
6
# File 'app/helpers/redmine_with_git_helper.rb', line 4

def export_api_curl_command
  curl_command("curl -JLO '#{export_backup_url(key: User.current.api_key)}'")
end

#import_api_curl_commandObject



8
9
10
11
12
13
14
15
# File 'app/helpers/redmine_with_git_helper.rb', line 8

def import_api_curl_command
  curl_command("    curl -X POST \\\\\n      -F '\#{import_param_key}=@<PATH_TO_BACKUP_FILE>' \\\\\n      -F 'key=\#{User.current.api_key}' \\\\\n      \#{import_backup_url(format: 'json')}\n  IMPORT_CURL\nend\n")