Sha256: 8080d5c6df60f70ff862bc84f0ee60ff942d0e69f910b64ac0712458caf98235
Contents?: true
Size: 1.09 KB
Versions: 17
Compression:
Stored size: 1.09 KB
Contents
module DPL class Provider class CloudFoundry < Provider def initial_go_tools_install context.shell 'wget http://go-cli.s3-website-us-east-1.amazonaws.com/releases/latest/cf-cli_amd64.deb -qO temp.deb && sudo dpkg -i temp.deb' context.shell 'rm temp.deb' 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
17 entries across 17 versions & 1 rubygems