Sha256: 54244ab0bbb6afb380a93b5702dfc1da1902b700440e4cffadcf4ed3bb2fa432

Contents?: true

Size: 411 Bytes

Versions: 6

Compression:

Stored size: 411 Bytes

Contents

module CodeigniterScaffold
  class Executor

    def run(args)
      action = args.shift if args
      COMMANDS.fetch(action, Command::Help).new.run(args)
    end
  end

  COMMANDS = {
    "--help"     => Command::Help,
    "--init"     => Command::Init,
    "--scaffold" => Command::Scaffold,
    "-h"         => Command::Help,
    "-i"         => Command::Init,
    "-s"         => Command::Scaffold
  }

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
codeigniter3-scaffold-1.1.0 lib/codeigniter_scaffold/executor.rb
codeigniter-scaffold-2.0 lib/codeigniter_scaffold/executor.rb
codeigniter-scaffold-1.0.0 lib/codeigniter_scaffold/executor.rb
codeigniter-scaffold-0.0.3 lib/codeigniter_scaffold/executor.rb
codeigniter-scaffold-0.0.2 lib/codeigniter_scaffold/executor.rb
codeigniter-scaffold-0.0.1 lib/codeigniter_scaffold/executor.rb