Sha256: a2ae1e66e4631c90de508ccc0898794fbf5a6d56546c861aaa8c1b3d3bd09081
Contents?: true
Size: 665 Bytes
Versions: 15
Compression:
Stored size: 665 Bytes
Contents
module DPL class Provider class CloudFoundry < Provider requires 'cf' def check_auth context.shell "cf target #{option(:target)}" context.shell "cf login --username #{option(:username)} --password #{option(:password)} --organization #{option(:organization)} --space #{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 end end end
Version data entries
15 entries across 15 versions & 1 rubygems