Module: Loom

Defined in:
lib/loom.rb,
lib/loom/trap.rb,
lib/loom/facts.rb,
lib/loom/shell.rb,
lib/loom/config.rb,
lib/loom/logger.rb,
lib/loom/runner.rb,
lib/loom/version.rb,
lib/loom/core_ext.rb,
lib/loom/host_spec.rb,
lib/loom/inventory.rb,
lib/loom/method_signature.rb,
lib/loom/shell/harness_command_builder.rb

Defined Under Namespace

Modules: CoreExt, Facts, Inventory, Mods, Pattern, RunnerModule, Shell Classes: Config, HostSpec, Logger, MethodSignature, Runner, Trap

Constant Summary collapse

LoomError =
Class.new ::StandardError
ExecutionError =
Class.new LoomError
ConfigError =
Class.new Loom::LoomError
VERSION =
"0.0.9"
UnparseableHostStringError =
Class.new Loom::LoomError

Class Method Summary collapse

Class Method Details

.configObject



14
15
16
17
18
19
20
# File 'lib/loom.rb', line 14

def config
  unless @config
    @config = Loom::Config.configure
    config_changed
  end
  @config
end

.configure(&block) ⇒ Object



9
10
11
12
# File 'lib/loom.rb', line 9

def configure(&block)
  @config = Loom::Config.configure @config, &block
  config_changed
end

.logObject



26
27
28
# File 'lib/loom.rb', line 26

def log
  @logger ||= config_logger
end

.reset_configObject



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

def reset_config
  @config = nil
end