Class: DPL::Provider::Script

Inherits:
DPL::Provider show all
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, options)
  super(context, options.merge!({needs_git_http_user_agent: false}))
end

Instance Method Details

#check_appObject



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

def check_app
end

#check_authObject



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

def check_auth
end

#needs_key?Boolean

Returns:

  • (Boolean)


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

def needs_key?
  false
end

#push_appObject



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

#scriptObject



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

def script
  options[:script]
end