Module: Woz

Defined in:
lib/woz.rb,
lib/woz/logger.rb,
lib/woz/builder.rb,
lib/woz/version.rb,
lib/woz/configuration.rb

Defined Under Namespace

Classes: Builder, Configuration, Logger

Constant Summary collapse

VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.configObject



8
9
10
# File 'lib/woz.rb', line 8

def config
  @config ||= Configuration.default
end

.configure {|config| ... } ⇒ Object

Yields:



12
13
14
# File 'lib/woz.rb', line 12

def configure
  yield config
end

.loggerObject



21
22
23
# File 'lib/woz.rb', line 21

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

.run(cmd) ⇒ Object



16
17
18
19
# File 'lib/woz.rb', line 16

def run(cmd)
  puts "Executing #{cmd}"
  puts system("#{cmd}")
end