Class: Keppler::Add

Inherits:
Thor
  • Object
show all
Defined in:
lib/keppler/add.rb

Instance Method Summary collapse

Instance Method Details

#module(*params) ⇒ Object



7
8
9
10
11
12
# File 'lib/keppler/add.rb', line 7

def module(*params)
  rocket_name = params[0]
  module_name = params[1]
  fields = params[2..params.length].join(" ")
  system("rails g keppler_add_module #{rocket_name} #{module_name} #{fields} -y")
end