Sha256: 7aee7c4cae6cebb40ae94ef4a5a87b4bfab3b008a055e1855ddd225a994c3a67
Contents?: true
Size: 753 Bytes
Versions: 2
Compression:
Stored size: 753 Bytes
Contents
require "architecture/dsl" require "active_support/all" require "shogun" module Shogun class Command require_relative "command/new" require_relative "command/generate" require_relative "command/database" def initialize(namespace, command, *parameters) @namespace = namespace @command = command @parameters = parameters end def execute case @command when "new" then ::Shogun::Command::New.new(@namespace, *@parameters) when "generate" then ::Shogun::Command::Generate.new(@namespace, *@parameters) when "database" then ::Shogun::Command::Database.new(@namespace, *@parameters) when "console" then binding.pry end.execute end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shogun-6.4.0 | lib/shogun/command.rb |
shogun-6.3.0 | lib/shogun/command.rb |