Class: OpenHAB::RSpec::Mocks::BundleInstallSupport
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- OpenHAB::RSpec::Mocks::BundleInstallSupport
- Defined in:
- lib/openhab/rspec/mocks/bundle_install_support.rb
Instance Method Summary collapse
-
#initialize(parent, karaf_wrapper) ⇒ BundleInstallSupport
constructor
A new instance of BundleInstallSupport.
- #set_bundle_start_level(bundle, _start_level) ⇒ Object
Constructor Details
#initialize(parent, karaf_wrapper) ⇒ BundleInstallSupport
Returns a new instance of BundleInstallSupport.
12 13 14 15 |
# File 'lib/openhab/rspec/mocks/bundle_install_support.rb', line 12 def initialize(parent, karaf_wrapper) super(parent) @karaf_wrapper = karaf_wrapper end |
Instance Method Details
#set_bundle_start_level(bundle, _start_level) ⇒ Object
17 18 19 20 21 |
# File 'lib/openhab/rspec/mocks/bundle_install_support.rb', line 17 def set_bundle_start_level(bundle, _start_level) return if @karaf_wrapper.send(:blocked_bundle?, bundle) super end |