Module: Cch

Defined in:
lib/cch.rb,
lib/cch/setup.rb,
lib/cch/logger.rb,
lib/cch/runner.rb,
lib/cch/version.rb,
lib/cch/watcher.rb,
lib/cch/loggers/level.rb,
lib/cch/commands/shell.rb,
lib/cch/loggers/stdout.rb,
lib/cch/commands/file_system.rb

Defined Under Namespace

Modules: Commands, Loggers Classes: Logger, Runner, Setup, Watcher

Constant Summary collapse

VERSION =
'0.6.2'.freeze

Class Method Summary collapse

Class Method Details

.loggerObject



14
15
16
# File 'lib/cch.rb', line 14

def logger
  @logger ||= Logger.new
end

.run(args = []) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/cch.rb', line 22

def run(args = [])
  setup.configure

  files = Watcher.files

  runners(args).each { |runner| runner.run(files) }
end

.setupObject



18
19
20
# File 'lib/cch.rb', line 18

def setup
  @setup ||= Setup.new
end