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.1.travis.449.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.1.travis.447.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.0 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.11.travis.445.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.11.travis.437.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.11.travis.436.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.11.travis.435.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.11.travis.432.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.11.travis.430.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.11.travis.414.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.10 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.10.travis.413.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.10.travis.402.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.6.0.travis.399.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.9 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.9.travis.397.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.9.travis.394.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.9.travis.393.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.9.travis.390.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.5.9.travis.373.1 lib/dpl/provider/cloud_foundry.rb