Class: ManageIQ::CrossRepo::Runner::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/manageiq/cross_repo/runner/base.rb

Direct Known Subclasses

Github, Travis

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(script_cmd = nil) ⇒ Base

Returns a new instance of Base.



9
10
11
12
# File 'lib/manageiq/cross_repo/runner/base.rb', line 9

def initialize(script_cmd = nil)
  @script_cmd = script_cmd.presence
  @config     = load_config!
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



7
8
9
# File 'lib/manageiq/cross_repo/runner/base.rb', line 7

def config
  @config
end

#script_cmdObject

Returns the value of attribute script_cmd.



7
8
9
# File 'lib/manageiq/cross_repo/runner/base.rb', line 7

def script_cmd
  @script_cmd
end

Instance Method Details

#build_test_scriptObject



14
15
16
17
# File 'lib/manageiq/cross_repo/runner/base.rb', line 14

def build_test_script
  load_config!
  build_script
end