Module: Hammerhead

Defined in:
lib/hammerhead.rb,
lib/hammerhead/cli.rb,
lib/hammerhead/utils.rb,
lib/hammerhead/command.rb,
lib/hammerhead/version.rb,
lib/hammerhead/configuration.rb,
lib/hammerhead/commands/status.rb,
lib/hammerhead/commands/clients.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Commands, Utils Classes: CLI, Command, Configuration, Error

Constant Summary collapse

VERSION =
'0.1.3'

Class Method Summary collapse

Class Method Details

.configurationObject

Returns a Hammerhead::Configuration instance



31
32
33
# File 'lib/hammerhead.rb', line 31

def configuration
  @configuration ||= Hammerhead::Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Provides an alternate way to access the configuration

Yields:



44
45
46
# File 'lib/hammerhead.rb', line 44

def configure
  yield configuration
end

.loggerObject

Returns a TTY::Logger instance



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

def logger
  @logger ||= TTY::Logger.new
end