Class: DPL::Provider::Ninefold
Instance Attribute Summary
#context, #options
Instance Method Summary
collapse
apt_get, #cleanup, #commit_msg, context, #create_key, #deploy, #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_app ⇒ Object
10
11
12
|
# File 'lib/dpl/provider/ninefold.rb', line 10
def check_app
raise Error, "must supply an app ID" unless option(:app_id)
end
|
#check_auth ⇒ Object
6
7
8
|
# File 'lib/dpl/provider/ninefold.rb', line 6
def check_auth
raise Error, "must supply an auth token" unless option(:auth_token)
end
|
#needs_key? ⇒ Boolean
14
15
16
|
# File 'lib/dpl/provider/ninefold.rb', line 14
def needs_key?
false
end
|
#push_app ⇒ Object
18
19
20
|
# File 'lib/dpl/provider/ninefold.rb', line 18
def push_app
context.shell "AUTH_TOKEN=#{option(:auth_token)} APP_ID=#{option(:app_id)} ninefold app redeploy --robot --sure"
end
|