Class: VraptorScaffold::Runner::Scaffold

Inherits:
Object
  • Object
show all
Defined in:
lib/vraptor-scaffold/runner/scaffold.rb

Instance Method Summary collapse

Instance Method Details

#run(args) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/vraptor-scaffold/runner/scaffold.rb', line 5

def run(args)
  if VraptorScaffold::Runner::Help.help? args.first
    ScaffoldGenerator.start(["-h"])
  elsif File.exist?("src")
    ScaffoldGenerator.new(args).invoke_all
  else
    puts "To run vraptor scaffold please go to the project root folder."
  end
end