Sha256: 51f1f2dcd15296eef2400015602e93b5017127be790687861040e849b20f74c1
Contents?: true
Size: 816 Bytes
Versions: 1
Compression:
Stored size: 816 Bytes
Contents
require "envied" require "dotenv" Dotenv.load ENVied.require 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shogun-6.4.2 | lib/shogun/command.rb |