Module: SpecInfra::Helper::Backend
- Defined in:
- lib/specinfra/helper/backend.rb
Instance Method Summary collapse
Instance Method Details
#backend_for(type) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/specinfra/helper/backend.rb', line 19 def backend_for(type) instance = self.class.const_get('SpecInfra').const_get('Backend').const_get(type.to_s.capitalize).instance commands = self.class.const_get('SpecInfra').const_get('Command').const_get(instance.check_os[:family]).new instance.set_commands(commands) instance end |