lib/dpl/provider/dot_cloud.rb in dpl-0.2.0 vs lib/dpl/provider/dot_cloud.rb in dpl-1.0.0
- old
+ new
@@ -1,23 +1,28 @@
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 = option[:instance] || option[:service] || 'www'
+ service = options[:instance] || options[:service] || 'www'
`dotcloud -A #{option(:app)} #{service} #{command}`
end
end
end
end
\ No newline at end of file