Sha256: e1df7d4c94e7944aa5640941d468c4745c4b77e9c8c87992c44ff0fe4d75f92e
Contents?: true
Size: 904 Bytes
Versions: 141
Compression:
Stored size: 904 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)}" 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
141 entries across 141 versions & 1 rubygems