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.13.travis.1528.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.15.travis.1385.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.15.travis.1379.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.15.travis.1378.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.15.travis.1375.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.15.travis.1374.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.15.travis.1358.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.15.travis.1349.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.15.travis.1336.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.15.travis.1329.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.15.travis.1317.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.14 lib/dpl/provider/dot_cloud.rb
dpl-1.8.14.travis.1316.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.14.travis.1314.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.13 lib/dpl/provider/dot_cloud.rb
dpl-1.8.13.travis.1313.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.13.travis.1311.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.13.travis.1306.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.13.travis.1301.4 lib/dpl/provider/dot_cloud.rb
dpl-1.8.12.travis.1300.4 lib/dpl/provider/dot_cloud.rb