Class: Kitchen::Driver::Static::Queueing::Base
- Inherits:
-
Object
- Object
- Kitchen::Driver::Static::Queueing::Base
- Defined in:
- lib/kitchen/driver/queueing/base.rb
Instance Attribute Summary collapse
-
#banner ⇒ Object
readonly
Returns the value of attribute banner.
-
#env_vars ⇒ Object
readonly
Returns the value of attribute env_vars.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#release_options ⇒ Object
readonly
Returns the value of attribute release_options.
-
#request_options ⇒ Object
readonly
Returns the value of attribute request_options.
Class Method Summary collapse
Instance Method Summary collapse
- #banner? ⇒ Boolean
-
#initialize(options) ⇒ Base
constructor
A new instance of Base.
- #release(state) ⇒ Object
- #request(state) ⇒ Object
Constructor Details
#initialize(options) ⇒ Base
Returns a new instance of Base.
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/kitchen/driver/queueing/base.rb', line 16 def initialize() @options = { queueing_timeout: 3600, } @request_options = {} @release_options = {} setup() () end |
Instance Attribute Details
#banner ⇒ Object (readonly)
Returns the value of attribute banner.
14 15 16 |
# File 'lib/kitchen/driver/queueing/base.rb', line 14 def @banner end |
#env_vars ⇒ Object (readonly)
Returns the value of attribute env_vars.
14 15 16 |
# File 'lib/kitchen/driver/queueing/base.rb', line 14 def env_vars @env_vars end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
14 15 16 |
# File 'lib/kitchen/driver/queueing/base.rb', line 14 def @options end |
#release_options ⇒ Object (readonly)
Returns the value of attribute release_options.
14 15 16 |
# File 'lib/kitchen/driver/queueing/base.rb', line 14 def @release_options end |
#request_options ⇒ Object (readonly)
Returns the value of attribute request_options.
14 15 16 |
# File 'lib/kitchen/driver/queueing/base.rb', line 14 def @request_options end |
Class Method Details
.descendants ⇒ Object
45 46 47 |
# File 'lib/kitchen/driver/queueing/base.rb', line 45 def self.descendants ObjectSpace.each_object(Class).select { |klass| klass < self } end |
Instance Method Details
#banner? ⇒ Boolean
41 42 43 |
# File 'lib/kitchen/driver/queueing/base.rb', line 41 def ! @banner.nil? end |
#release(state) ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/kitchen/driver/queueing/base.rb', line 33 def release(state) @env_vars = { STATIC_HOSTNAME: state[:hostname], } handle_release(state) end |
#request(state) ⇒ Object
29 30 31 |
# File 'lib/kitchen/driver/queueing/base.rb', line 29 def request(state) handle_request(state) end |