Module: Mooncell::CLI::Commands Private

Defined in:
lib/mooncell/cli/commands.rb,
lib/mooncell/cli/commands/base.rb,
lib/mooncell/cli/commands/server.rb,
lib/mooncell/cli/commands/console.rb,
lib/mooncell/cli/commands/version.rb,
lib/mooncell/cli/commands/registry.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

CLI Commands

Since:

  • 0.1.0

Defined Under Namespace

Classes: Base, Console, Registry, Server, Version

Class Method Summary collapse

Class Method Details

.app_initialized?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns Is application initialized.

Returns:

  • (Boolean)

    Is application initialized

Since:

  • 0.1.0



24
25
26
27
# File 'lib/mooncell/cli/commands.rb', line 24

def self.app_initialized?
  Gem.loaded_specs.key?('mooncell') &&
    Mooncell.root.join('config', 'boot.rb').exist?
end

.get(arguments) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



16
17
18
# File 'lib/mooncell/cli/commands.rb', line 16

def self.get(arguments)
  Registry.get(arguments)
end