Class: Mynatra::CLI
- Inherits:
-
Thor
- Object
- Thor
- Mynatra::CLI
- Defined in:
- lib/mynatra/cli.rb
Instance Method Summary collapse
Instance Method Details
#new(name) ⇒ Object
14 15 16 |
# File 'lib/mynatra/cli.rb', line 14 def new(name) Mynatra::Generators::Scaffolding.start([name.singularize]) end |
#resource(name, *attributes) ⇒ Object
19 20 21 22 23 |
# File 'lib/mynatra/cli.rb', line 19 def resource(name, *attributes) puts "The arguments are: #{attributes}" puts "Args is: #{attributes.class}" Mynatra::Generators::Resource.start([ name.singularize, attributes ]) end |