Sha256: 8490760fdcd7e47e2834549b52d8008122f98ff9e2a56920f7708735a72f3849

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

module SpringMvcScaffold

  class Execution
    def run(args)
      action = args.shift
      runner_for(action).new.run(args)
    end

    def runner_for(action)
      SpringMvcScaffold::COMMANDS.fetch(action, Runner::CommandsHelp)
    end
  end

  COMMANDS = {
    "--help" => Runner::Generator,
    "-h" => Runner::Generator,
    "new" => Runner::Generator,
    "scaffold" => Runner::Scaffold
  }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
springmvc-scaffold-1.0.1 lib/springmvc-scaffold/execution.rb