Class: Turple::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/turple/cli.rb

Instance Method Summary collapse

Instance Method Details

#ateObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/turple/cli.rb', line 7

def ate
  # enable interactive mode
  Turple.turpleobject = { :interactive => true }

  # dont pass a nil destination
  configuration_hash = options['destination'] ? { :destination => options['destination'] } : {}

  # initialize turple
  Turple.ate options['template'], {}, configuration_hash
end