Class: DPL::Provider::Script
Instance Attribute Summary
#context, #options
Instance Method Summary
collapse
apt_get, #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_app ⇒ Object
10
11
|
# File 'lib/dpl/provider/script.rb', line 10
def check_app
end
|
#check_auth ⇒ Object
7
8
|
# File 'lib/dpl/provider/script.rb', line 7
def check_auth
end
|
#needs_key? ⇒ Boolean
13
14
15
|
# File 'lib/dpl/provider/script.rb', line 13
def needs_key?
false
end
|
#push_app ⇒ Object
17
18
19
20
21
22
|
# File 'lib/dpl/provider/script.rb', line 17
def push_app
context.shell script
if $?.exitstatus != 0
raise Error, "Script failed with status #{$?.exitstatus}"
end
end
|
#script ⇒ Object
24
25
26
|
# File 'lib/dpl/provider/script.rb', line 24
def script
options[:script]
end
|