Sha256: a59c0853df4fe44bdc5ca958a8e3f1232d46bcea72e43c1124ce2dc012f53c97

Contents?: true

Size: 496 Bytes

Versions: 4

Compression:

Stored size: 496 Bytes

Contents

module Shogun
  class Command
    class Database
      def initialize(namespace, command, *parameters)
        @namespace = namespace
        @command = command
        @parameters = parameters
      end

      def execute
        case @command
          when "reset" then
            ::Shogun::Database.setup!(logger: Logger.new(STDOUT))
          when "console" then
            ::Shogun::Database.new(logger: Logger.new(STDOUT))
            binding.pry
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shogun-6.4.2 lib/shogun/command/database.rb
shogun-6.4.1 lib/shogun/command/database.rb
shogun-6.4.0 lib/shogun/command/database.rb
shogun-6.3.0 lib/shogun/command/database.rb