Module: Nova

Defined in:
lib/nova.rb,
lib/nova/cli.rb,
lib/nova/star.rb,
lib/nova/shell.rb,
lib/nova/common.rb,
lib/nova/remote.rb,
lib/nova/project.rb,
lib/nova/version.rb,
lib/nova/starbound.rb,
lib/nova/exceptions.rb,
lib/nova/constructor.rb,
lib/nova/remote/fake.rb,
lib/nova/remote/local.rb,
lib/nova/commands/server.rb,
lib/nova/common/features.rb,
lib/nova/common/metadata.rb,
lib/nova/starbound/client.rb,
lib/nova/starbound/server.rb,
lib/nova/starbound/protocol.rb,
lib/nova/starbound/encryptor.rb,
lib/nova/common/event_handler.rb,
lib/nova/common/metadata/data.rb,
lib/nova/remote/fake/commands.rb,
lib/nova/remote/fake/platform.rb,
lib/nova/starbound/encryptors.rb,
lib/nova/common/star_management.rb,
lib/nova/common/features/feature.rb,
lib/nova/common/metadata/options.rb,
lib/nova/remote/fake/file_system.rb,
lib/nova/starbound/protocol/packet.rb,
lib/nova/starbound/protocol/socket.rb,
lib/nova/common/event_handler/event.rb,
lib/nova/starbound/default_behavior.rb,
lib/nova/starbound/encryptors/rbnacl.rb,
lib/nova/starbound/protocol/messages.rb,
lib/nova/remote/fake/operating_system.rb,
lib/nova/starbound/encryptors/openssl.rb,
lib/nova/starbound/protocol/encryption.rb,
lib/nova/starbound/protocol/exceptions.rb,
lib/nova/starbound/encryptors/plaintext.rb,
lib/nova/starbound/default_behavior/echoable.rb,
lib/nova/starbound/default_behavior/eventable.rb,
lib/nova/starbound/default_behavior/passwordable.rb,
lib/nova/starbound/default_behavior/star_runnable.rb

Overview

A Game management software. Also note that a method named Nova is available under the top-level namespace, which acts as an alias for Nova.create.

Defined Under Namespace

Modules: Commands, Common, Remote, Starbound Classes: CLI, Constructor, InvalidOptionsError, NoEventError, NoPlatformError, NoStarError, Project, Shell, Star

Constant Summary collapse

VERSION =

The version of Nova.

"0.0.3".freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerLogger

The Nova logger. By default outputs to STDOUT.

Returns:

  • (Logger)


22
23
24
# File 'lib/nova.rb', line 22

def self.logger
  @logger ||= Logger.new(STDOUT)
end

Class Method Details

.create(options) { ... } ⇒ Class

This creates a star with a given block, unless it already exists; if it does, it just modifies that star.

Parameters:

  • options (Hash{Symbol => Symbol})

    the first key value pair is used to determine the star type and star name, while the rest is ignored.

Yields:

  • to create the star.

Returns:

  • (Class)

    the new star.



38
39
40
# File 'lib/nova.rb', line 38

def self.create(options, &block)
  Constructor.new(options, &block).modify_or_create
end