Class: DPL::Provider::Script

Inherits:
DPL::Provider show all
Defined in:
lib/dpl/provider/script.rb

Instance Method Summary collapse

Instance Method Details

#check_appObject



10
11
# File 'lib/dpl/provider/script.rb', line 10

def check_app
end

#check_authObject



7
8
# File 'lib/dpl/provider/script.rb', line 7

def check_auth
end

#needs_key?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/dpl/provider/script.rb', line 13

def needs_key?
  false
end

#push_appObject



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

#scriptObject



24
25
26
# File 'lib/dpl/provider/script.rb', line 24

def script
  options[:script]
end