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.5.3.travis.269.1 lib/dpl/provider/dot_cloud.rb
dpl-1.5.3.travis.268.1 lib/dpl/provider/dot_cloud.rb
dpl-1.5.3.travis.264.1 lib/dpl/provider/dot_cloud.rb
dpl-1.5.3.travis.265.1 lib/dpl/provider/dot_cloud.rb
dpl-1.5.3.travis.262.1 lib/dpl/provider/dot_cloud.rb
dpl-1.5.3.travis.261.1 lib/dpl/provider/dot_cloud.rb
dpl-1.5.3.travis.259.1 lib/dpl/provider/dot_cloud.rb
dpl-1.5.3.travis.257.1 lib/dpl/provider/dot_cloud.rb
dpl-1.5.3.travis.255.2 lib/dpl/provider/dot_cloud.rb
dpl-1.5.3.travis.254.2 lib/dpl/provider/dot_cloud.rb
dpl-1.5.3.travis.252.2 lib/dpl/provider/dot_cloud.rb
dpl-1.5.2.travis.248.2 lib/dpl/provider/dot_cloud.rb
dpl-1.5.3.travis.249.2 lib/dpl/provider/dot_cloud.rb
dpl-1.5.2 lib/dpl/provider/dot_cloud.rb
dpl-1.5.2.travis.245.2 lib/dpl/provider/dot_cloud.rb
dpl-1.5.2.travis.244.2 lib/dpl/provider/dot_cloud.rb
dpl-1.5.2.travis.243.2 lib/dpl/provider/dot_cloud.rb
dpl-1.5.2.travis.242.2 lib/dpl/provider/dot_cloud.rb
dpl-1.5.2.travis.241.2 lib/dpl/provider/dot_cloud.rb
dpl-1.5.2.travis.240.2 lib/dpl/provider/dot_cloud.rb