Sha256: ffb8901493d357da35946c3d9623977a64846ae0727d56b5e55db4394a7b6a43
Contents?: true
Size: 1.51 KB
Versions: 6
Compression:
Stored size: 1.51 KB
Contents
module DPL class Provider class Boxfuse < Provider def deploy @user = options[:user] @secret = options[:secret] @configfile = options[:configfile] @payload = options[:payload] @app = options[:app] @version = options[:version] @env = options[:env] @param_user = '' if @user.to_s != '' @param_user = " -user=" + @user end @param_secret = '' if @secret.to_s != '' @param_secret = " -secret=" + @secret end @param_configfile = '' if @configfile.to_s != '' @param_configfile = ' "-configfile=' + @configfile + '"' end @param_payload = '' if @payload.to_s != '' @param_payload = ' "' + @payload + '"' end @param_app = '' if @app.to_s != '' @param_app = " -app=" + @app end @param_version = '' if @version.to_s != '' @param_version = " -version=" + @version end @param_env = '' if @env.to_s != '' @param_env = " -env=" + @env end context.shell "curl -L https://files.boxfuse.com/com/boxfuse/client/boxfuse-commandline/latest/boxfuse-commandline-latest-linux-x64.tar.gz | tar xz" @command = "boxfuse/boxfuse run" + @param_user + @param_secret + @param_configfile + @param_payload + @param_app + @param_version + @param_env context.fold("Deploying application") { context.shell @command } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems