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.6.travis.623.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.5.travis.622.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.5 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.5.travis.620.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.4 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.4.travis.619.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.4.travis.600.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.3 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.3.travis.597.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.3.travis.594.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.2 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.2.travis.592.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.2.travis.591.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.2.travis.590.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.2.travis.589.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.2.travis.588.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.2.travis.586.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.2.travis.584.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.2.travis.582.1 lib/dpl/provider/cloud_foundry.rb
dpl-1.7.2.travis.581.1 lib/dpl/provider/cloud_foundry.rb