Sha256: a52e2aa091cea1bc78eb32bc8f01581ef5198fda86f7c5edc2a9196bd349bd8b

Contents?: true

Size: 585 Bytes

Versions: 2

Compression:

Stored size: 585 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
        `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

2 entries across 2 versions & 1 rubygems

Version Path
dpl-1.3.0 lib/dpl/provider/dot_cloud.rb
dpl-1.2.0 lib/dpl/provider/dot_cloud.rb