Sha256: d6fd072e9506b2297acfd758647514a0088663c3d880a020723ccdcd20b7f638
Contents?: true
Size: 1.5 KB
Versions: 14
Compression:
Stored size: 1.5 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] @image = options[:image] @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_image = '' if @image.to_s != '' @param_image = " -image=" + @image end @param_env = ' test' 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_image + @param_env context.fold("Deploying application") { context.shell @command } end end end end
Version data entries
14 entries across 14 versions & 1 rubygems