Sha256: 452746175c0d01342a073ac4fbc81fc7948cf0e6a577f4aed5fec094f80a7a26
Contents?: true
Size: 1.1 KB
Versions: 58
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
58 entries across 58 versions & 1 rubygems