Class: DPL::Provider::Appfog
Instance Attribute Summary
#context, #options
Instance Method Summary
collapse
#check_app, #cleanup, context, #create_key, #deploy, #error, experimental, #initialize, #log, new, npm_g, #option, pip, requires, #run, #setup_git_credentials, #setup_git_ssh, #sha, shell, #uncleanup
Constructor Details
This class inherits a constructor from DPL::Provider
Instance Method Details
#check_auth ⇒ Object
6
7
8
|
# File 'lib/dpl/provider/appfog.rb', line 6
def check_auth
context.shell "af login --email=#{option(:email)} --password=#{option(:password)}"
end
|
#needs_key? ⇒ Boolean
10
11
12
|
# File 'lib/dpl/provider/appfog.rb', line 10
def needs_key?
false
end
|
#push_app ⇒ Object
14
15
16
17
|
# File 'lib/dpl/provider/appfog.rb', line 14
def push_app
context.shell "af update #{options[:app] || File.basename(Dir.getwd)}"
context.shell "af logout"
end
|