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

Version Path
dpl-1.4.9.travis.151.2 lib/dpl/provider/cloud_foundry.rb
dpl-1.4.8 lib/dpl/provider/cloud_foundry.rb
dpl-1.4.8.travis.150.2 lib/dpl/provider/cloud_foundry.rb
dpl-1.4.8.travis.148.2 lib/dpl/provider/cloud_foundry.rb
dpl-1.4.8.travis.143.2 lib/dpl/provider/cloud_foundry.rb
dpl-1.4.8.travis.141.2 lib/dpl/provider/cloud_foundry.rb
dpl-1.4.7.travis.140.2 lib/dpl/provider/cloud_foundry.rb
dpl-1.4.7 lib/dpl/provider/cloud_foundry.rb
dpl-1.4.7.travis.135.2 lib/dpl/provider/cloud_foundry.rb
dpl-1.4.7.travis.127.2 lib/dpl/provider/cloud_foundry.rb
dpl-1.4.6 lib/dpl/provider/cloud_foundry.rb
dpl-1.4.6.travis.126.2 lib/dpl/provider/cloud_foundry.rb
dpl-1.4.6.travis.124.2 lib/dpl/provider/cloud_foundry.rb
dpl-1.4.6.travis.125.2 lib/dpl/provider/cloud_foundry.rb
dpl-1.4.6.travis.119.2 lib/dpl/provider/cloud_foundry.rb