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.6.7.travis.546.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.7.travis.535.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.531.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.7.travis.527.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.526.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.524.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.521.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.518.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.512.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.509.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.508.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.507.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.500.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.498.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.496.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.492.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.491.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.487.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.6.travis.484.1 lib/dpl/provider/cloud_foundry.rb