Class: Moose::Inventory::Operations::AddHosts
- Inherits:
-
Object
- Object
- Moose::Inventory::Operations::AddHosts
- Defined in:
- lib/moose_inventory/operations/add_hosts.rb
Overview
Adds hosts and their optional group associations.
The operation mutates inventory state and returns structured events for the CLI adapter to render. Keeping output out of this class makes the inventory behavior easier to exercise without binding every domain test to progress text.
Defined Under Namespace
Constant Summary collapse
- AUTOMATIC_GROUP =
'ungrouped'
Instance Method Summary collapse
- #call(names:, groups:) ⇒ Object
-
#initialize(context:) ⇒ AddHosts
constructor
A new instance of AddHosts.
Constructor Details
#initialize(context:) ⇒ AddHosts
Returns a new instance of AddHosts.
18 19 20 |
# File 'lib/moose_inventory/operations/add_hosts.rb', line 18 def initialize(context:) @context = context end |