9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/dpl/provider/scalingo.rb', line 9
def install_deploy_dependencies
download_url = 'https://cli-dl.scalingo.io/release/scalingo_latest_linux_amd64.tar.gz'
command = 'curl'
command = "#{command} --silent" if !@debug
command = "#{command} --remote-name --location #{download_url}"
tar_options = 'v' if @debug
tar_options = "#{tar_options}zxf"
command = "#{command} && tar -#{tar_options} scalingo_latest_linux_amd64.tar.gz" \
' && mv scalingo_*_linux_amd64/scalingo .' \
' && rm scalingo_latest_linux_amd64.tar.gz' \
' && rm -r scalingo_*_linux_amd64'
error "Couldn't install Scalingo CLI." if !context.shell command
end
|