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

Version Path
dpl-1.7.12.travis.764.4 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.12.travis.763.4 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.12.travis.762.4 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.12.travis.748.4 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.12.travis.742.4 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.12.travis.734.4 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.11.travis.733.4 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.11 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.10 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.11.travis.726.4 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.10.travis.725.4 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.10.travis.701.4 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.10.travis.700.4 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.10.travis.699.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.10.travis.694.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.10.travis.681.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.10.travis.677.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.10.travis.674.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.10.travis.673.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.10.travis.668.1 lib/dpl/provider/cloud_foundry.rb