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