Module: Kadryll

Defined in:
lib/kadryll.rb,
lib/kadryll/cli.rb,
lib/kadryll/drill.rb,
lib/kadryll/shorthand_reader.rb

Defined Under Namespace

Classes: CLI, Configuration, Drill, ShorthandReader

Class Method Summary collapse

Class Method Details

.configObject



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

def config
  Kadryll::Configuration.instance
end

.configure(&block) ⇒ Object



27
28
29
# File 'lib/kadryll.rb', line 27

def configure(&block)
  block.call Kadryll::Configuration.instance
end


23
24
25
# File 'lib/kadryll.rb', line 23

def copyright
  config.copyright
end

.initializeObject



10
11
12
13
# File 'lib/kadryll.rb', line 10

def initialize
  FileUtils.mkdir_p(output_dir) unless File.exists?(output_dir)
  FileUtils.mkdir_p(input_dir) unless File.exists?(input_dir)
end

.input_dirObject



19
20
21
# File 'lib/kadryll.rb', line 19

def input_dir
  config.input_dir
end

.output_dirObject



15
16
17
# File 'lib/kadryll.rb', line 15

def output_dir
  config.output_dir
end