Class: MuSL::Maker::Hosts

Inherits:
Block
  • Object
show all
Defined in:
lib/mu/maker.rb

Instance Attribute Summary

Attributes inherited from Block

#scenario

Instance Method Summary collapse

Methods inherited from Block

#comment, #initialize

Constructor Details

This class inherits a constructor from MuSL::Maker::Block

Instance Method Details

#create(name, type, role = nil) ⇒ Object



122
123
124
125
# File 'lib/mu/maker.rb', line 122

def create name, type, role=nil
    scenario.comment(role) if role
    scenario.line('&' + name + ' = host(type:' + type + ')')
end