Sha256: 36eea0ff1122e9c0f52e7a8bcf1ebd1440df958542901edf46d1bbf37246d9a5

Contents?: true

Size: 578 Bytes

Versions: 6

Compression:

Stored size: 578 Bytes

Contents

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

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

      def check_app
        `dotcloud connect #{option(:app)}`
      end

      def needs_key?
        false
      end

      def push_app
        `dotcloud push #{option(:app)}`
      end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dpl-1.1.1 lib/dpl/provider/dot_cloud.rb
dpl-1.1.0 lib/dpl/provider/dot_cloud.rb
dpl-1.0.3 lib/dpl/provider/dot_cloud.rb
dpl-1.0.2 lib/dpl/provider/dot_cloud.rb
dpl-1.0.1 lib/dpl/provider/dot_cloud.rb
dpl-1.0.0 lib/dpl/provider/dot_cloud.rb