Sha256: c7a053929ff62dacb49e769edea61af66ca79a9e2d61c4831080383bd10feb0a
Contents?: true
Size: 1.1 KB
Versions: 62
Compression:
Stored size: 1.1 KB
Contents
module DPL class Provider class CloudFoundry < Provider def initial_go_tools_install context.shell 'wget \'https://cli.run.pivotal.io/stable?release=linux64-binary&source=github\' -qO cf-linux-amd64.tgz && tar -zxvf cf-linux-amd64.tgz && rm cf-linux-amd64.tgz' end def check_auth initial_go_tools_install context.shell "./cf api #{option(:api)} #{'--skip-ssl-validation' if options[:skip_ssl_validation]}" context.shell "./cf login -u #{option(:username)} -p #{option(:password)} -o #{option(:organization)} -s #{option(:space)}" end def check_app if options[:manifest] error 'Application must have a manifest.yml for unattended deployment' unless File.exists? options[:manifest] end end def needs_key? false end def push_app context.shell "./cf push#{manifest}" context.shell "./cf logout" end def cleanup end def uncleanup end def manifest options[:manifest].nil? ? "" : " -f #{options[:manifest]}" end end end end
Version data entries
62 entries across 62 versions & 1 rubygems