Class: VraptorScaffold::Runner::Plugin
- Inherits:
-
Object
- Object
- VraptorScaffold::Runner::Plugin
- Defined in:
- lib/vraptor-scaffold/runner/plugin.rb
Instance Method Summary collapse
Instance Method Details
#run(args) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/vraptor-scaffold/runner/plugin.rb', line 6 def run(args) if VraptorScaffold::Runner::Help.help?(args.first) || args.size < 2 PluginGenerator.start(["-h"]) elsif File.exist?("src") PluginGenerator.new(args.shift, args).invoke_all else puts "To run vraptor plugin please go to the project root folder." end end |