Class: Eyeballs::CLI
- Inherits:
-
Thor
- Object
- Thor
- Eyeballs::CLI
- Defined in:
- lib/eyeballs/cli.rb
Instance Method Summary collapse
Instance Method Details
#generate(requested_generator, name, *args) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/eyeballs/cli.rb', line 5 def generate(requested_generator, name, *args) ARGV.delete('generate') if(ARGV.include?(requested_generator)) ARGV.delete(requested_generator) ActiveSupport::Inflector.constantize("Eyeballs::#{requested_generator.capitalize}Generator").start end end |