Class: Templatron::BuildCommand

Inherits:
AbstractCommand show all
Defined in:
lib/templatron/cli.rb

Overview

Use to build stuff!

Instance Method Summary collapse

Instance Method Details

#executeObject



45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/templatron/cli.rb', line 45

def execute
  # Instantiate the generator and build the stuff
  gen = Generator.new(
    template, 
    arguments, 
    output,
    delete?, 
    verbose?)
  t_start = Time.now      
  gen.build
  t_end = Time.now
  puts "BUILT in #{t_end - t_start} seconds"
end