Class: DPL::Provider::Script
- Inherits:
-
DPL::Provider
- Object
- DPL::Provider
- DPL::Provider::Script
- Defined in:
- lib/dpl/provider/script.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(context, options) ⇒ Object
4 5 6 |
# File 'lib/dpl/provider/script.rb', line 4 def self.new(context, ) super(context, .merge!({needs_git_http_user_agent: false})) end |
Instance Method Details
#check_app ⇒ Object
11 12 |
# File 'lib/dpl/provider/script.rb', line 11 def check_app end |
#check_auth ⇒ Object
8 9 |
# File 'lib/dpl/provider/script.rb', line 8 def check_auth end |
#needs_key? ⇒ Boolean
14 15 16 |
# File 'lib/dpl/provider/script.rb', line 14 def needs_key? false end |
#push_app ⇒ Object
18 19 20 21 22 23 |
# File 'lib/dpl/provider/script.rb', line 18 def push_app context.shell script if $?.exitstatus != 0 raise Error, "Script failed with status #{$?.exitstatus}" end end |
#script ⇒ Object
25 26 27 |
# File 'lib/dpl/provider/script.rb', line 25 def script [:script] end |