Sha256: 591d4465e5a0a6225a3309f9f922a46a5017f6fbbcb4b10033f5d6ecf4c8907e

Contents?: true

Size: 1.01 KB

Versions: 17

Compression:

Stored size: 1.01 KB

Contents

module Hanami
  # Hanami CLI
  #
  # @since 1.1.0
  class CLI
    module Commands
      # @since 1.1.0
      # @api private
      module Db
        require "hanami/cli/commands/db/version"
        require "hanami/cli/commands/db/create"
        require "hanami/cli/commands/db/drop"
        require "hanami/cli/commands/db/migrate"
        require "hanami/cli/commands/db/rollback"
        require "hanami/cli/commands/db/prepare"
        require "hanami/cli/commands/db/apply"
        require "hanami/cli/commands/db/console"
      end
    end

    register "db" do |prefix|
      prefix.register "version",  Commands::Db::Version
      prefix.register "create",   Commands::Db::Create
      prefix.register "drop",     Commands::Db::Drop
      prefix.register "migrate",  Commands::Db::Migrate
      prefix.register "rollback", Commands::Db::Rollback
      prefix.register "prepare",  Commands::Db::Prepare
      prefix.register "apply",    Commands::Db::Apply
      prefix.register "console",  Commands::Db::Console
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
hanami-1.3.5 lib/hanami/cli/commands/db.rb
hanami-1.3.4 lib/hanami/cli/commands/db.rb
hanami-1.3.3 lib/hanami/cli/commands/db.rb
hanami-1.3.2 lib/hanami/cli/commands/db.rb
hanami-1.3.1 lib/hanami/cli/commands/db.rb
hanami-1.3.0 lib/hanami/cli/commands/db.rb
hanami-1.3.0.beta1 lib/hanami/cli/commands/db.rb
hanami-1.2.0 lib/hanami/cli/commands/db.rb
hanami-1.2.0.rc2 lib/hanami/cli/commands/db.rb
hanami-1.2.0.rc1 lib/hanami/cli/commands/db.rb
hanami-1.2.0.beta2 lib/hanami/cli/commands/db.rb
hanami-1.2.0.beta1 lib/hanami/cli/commands/db.rb
hanami-1.1.1 lib/hanami/cli/commands/db.rb
hanami-1.1.0 lib/hanami/cli/commands/db.rb
hanami-1.1.0.rc1 lib/hanami/cli/commands/db.rb
hanami-1.1.0.beta3 lib/hanami/cli/commands/db.rb
hanami-1.1.0.beta2 lib/hanami/cli/commands/db.rb