Module: Bcome::Node::RegistryManagement

Included in:
Base
Defined in:
lib/objects/modules/registry_management.rb

Instance Method Summary collapse

Instance Method Details

#registryObject



10
11
12
13
14
15
16
17
# File 'lib/objects/modules/registry_management.rb', line 10

def registry
  command_group = user_command_wrapper
  if command_group&.has_commands?
    command_group.pretty_print
  else
    puts "\nYou have no registry commands configured for this namespace.\n".warning
  end
end

#user_command_wrapperObject



6
7
8
# File 'lib/objects/modules/registry_management.rb', line 6

def user_command_wrapper
  @user_command_wrapper ||= ::Bcome::Registry::CommandList.instance.group_for_node(self)
end