Sha256: 4b8587300a0f6c886f70b72da4e6d25f54189751cb09b744e82c0dc62a1c05d1

Contents?: true

Size: 628 Bytes

Versions: 402

Compression:

Stored size: 628 Bytes

Contents

module DPL
  class Provider
    class DotCloud < Provider
      experimental "dotCloud"
      pip 'dotcloud'

      def check_auth
        context.shell "echo #{option(:api_key)} | dotcloud setup --api-key"
      end

      def check_app
        context.shell "dotcloud connect #{option(:app)}"
      end

      def needs_key?
        false
      end

      def push_app
        context.shell "dotcloud push #{option(:app)}"
      end

      def run(command)
        service = options[:instance] || options[:service] || 'www'
        context.shell "dotcloud -A #{option(:app)} #{service} #{command}"
      end
    end
  end
end

Version data entries

402 entries across 402 versions & 1 rubygems

Version Path
dpl-1.8.7.travis.1125.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.6.travis.1124.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.6 lib/dpl/provider/dot_cloud.rb
dpl-1.8.6.travis.1116.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.5 lib/dpl/provider/dot_cloud.rb
dpl-1.8.5.travis.1114.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.5.travis.1113.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.5.travis.1112.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.5.travis.1104.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.5.travis.1101.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.5.travis.1097.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.4.travis.1090.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.3 lib/dpl/provider/dot_cloud.rb
dpl-1.8.3.travis.1088.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.3.travis.1087.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.3.travis.1078.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.2 lib/dpl/provider/dot_cloud.rb
dpl-1.8.2.travis.1075.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.2.travis.1071.4 lib/dpl/provider/dot_cloud.rb