Class: Lamma::CLI::Create

Inherits:
Object
  • Object
show all
Defined in:
lib/lamma/cli/create.rb

Instance Method Summary collapse

Constructor Details

#initialize(options, thor) ⇒ Create

Returns a new instance of Create.



5
6
7
8
9
# File 'lib/lamma/cli/create.rb', line 5

def initialize(options, thor)
  @options = options
  @thor = thor
  @conf_path = options[:path] || Lamma::DEFAULT_CONF_PATH
end

Instance Method Details

#runObject



11
12
13
14
# File 'lib/lamma/cli/create.rb', line 11

def run
  f = Lamma::Function.new(@conf_path)
  f.create
end