Module: Moose::Inventory::Cli

Extended by:
Cli
Included in:
Cli
Defined in:
lib/moose_inventory.rb,
lib/moose_inventory/cli/db.rb,
lib/moose_inventory/cli/host.rb,
lib/moose_inventory/cli/audit.rb,
lib/moose_inventory/cli/group.rb,
lib/moose_inventory/cli/console.rb,
lib/moose_inventory/cli/factory.rb,
lib/moose_inventory/cli/helpers.rb,
lib/moose_inventory/cli/host_rm.rb,
lib/moose_inventory/cli/group_rm.rb,
lib/moose_inventory/cli/host_add.rb,
lib/moose_inventory/cli/host_get.rb,
lib/moose_inventory/cli/formatter.rb,
lib/moose_inventory/cli/group_add.rb,
lib/moose_inventory/cli/group_get.rb,
lib/moose_inventory/cli/host_list.rb,
lib/moose_inventory/cli/host_tags.rb,
lib/moose_inventory/cli/group_list.rb,
lib/moose_inventory/cli/group_tags.rb,
lib/moose_inventory/cli/host_rmvar.rb,
lib/moose_inventory/cli/application.rb,
lib/moose_inventory/cli/group_rmvar.rb,
lib/moose_inventory/cli/host_addvar.rb,
lib/moose_inventory/cli/tag_support.rb,
lib/moose_inventory/cli/group_addvar.rb,
lib/moose_inventory/cli/group_rmhost.rb,
lib/moose_inventory/cli/host_rmgroup.rb,
lib/moose_inventory/cli/group_addhost.rb,
lib/moose_inventory/cli/group_rmchild.rb,
lib/moose_inventory/cli/host_addgroup.rb,
lib/moose_inventory/cli/host_listvars.rb,
lib/moose_inventory/cli/group_addchild.rb,
lib/moose_inventory/cli/group_listvars.rb,
lib/moose_inventory/cli/plan_rendering.rb,
lib/moose_inventory/cli/audit_recording.rb,
lib/moose_inventory/cli/listvars_support.rb,
lib/moose_inventory/cli/variable_rendering.rb,
lib/moose_inventory/cli/association_rendering.rb,
lib/moose_inventory/cli/child_relation_rendering.rb,
lib/moose_inventory/cli/relation_transaction_support.rb,
lib/moose_inventory/cli/association_rendering_support.rb

Overview

Module implementing the CLI for moose-inventory

Defined Under Namespace

Modules: AssociationRendering, AssociationRenderingSupport, AuditRecording, ChildRelationRendering, Formatter, Helpers, ListvarsSupport, PlanRendering, RelationTransactionSupport, TagSupport, VariableRendering Classes: Application, Audit, Console, Db, Factory, Group, Host

Instance Method Summary collapse

Instance Method Details

#start(args, config: Moose::Inventory::Config, db: Moose::Inventory::DB, application: Moose::Inventory::Cli::Application) ⇒ Object

rubocop:enable Style/ModuleFunction



17
18
19
20
21
22
23
24
25
# File 'lib/moose_inventory.rb', line 17

def start(args, config: Moose::Inventory::Config, db: Moose::Inventory::DB,
          application: Moose::Inventory::Cli::Application)
  # initialization stuff.
  config.init(args)
  db.init

  # Start the main application
  application.start(config.application_args)
end