Sha256: 66bfda8a95d63f09929e862271cab985f7695e4a9b34cb03110494c5dc908b5b
Contents?: true
Size: 964 Bytes
Versions: 37
Compression:
Stored size: 964 Bytes
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)}" context.shell "cf login --u #{option(:username)} --p #{option(:password)} --o #{option(:organization)} --s #{option(:space)} #{'--skip-ssl-validation' if options[:skip_ssl_validation]}" end def check_app error 'Application must have a manifest.yml for unattended deployment' unless File.exists? 'manifest.yml' end def needs_key? false end def push_app context.shell "cf push" context.shell "cf logout" end def cleanup end def uncleanup end end end end
Version data entries
37 entries across 37 versions & 1 rubygems