Class: HammerCLIForeman::PuppetClass::ListCommand
- Inherits:
-
ListCommand
- Object
- HammerCLI::Apipie::ReadCommand
- ListCommand
- HammerCLIForeman::PuppetClass::ListCommand
show all
- Defined in:
- lib/hammer_cli_foreman/puppet_class.rb
Constant Summary
Constants inherited
from ListCommand
ListCommand::DEFAULT_PER_PAGE
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from ListCommand
#adapter, command_name, #execute, #extend_data
Class Method Details
.unhash_classes(classes) ⇒ Object
20
21
22
23
24
25
|
# File 'lib/hammer_cli_foreman/puppet_class.rb', line 20
def self.unhash_classes(classes)
clss = classes.first.inject([]) { |list, (pp_module, pp_module_classes)| list + pp_module_classes }
HammerCLI::Output::RecordCollection.new(clss, :meta => classes.meta)
end
|
Instance Method Details
#retrieve_data ⇒ Object
16
17
18
|
# File 'lib/hammer_cli_foreman/puppet_class.rb', line 16
def retrieve_data
self.class.unhash_classes(super)
end
|