Sha256: d29adcda09067de348c5705b22f571bc84bde3e541eb85d80b0e42fe1ee7e534

Contents?: true

Size: 539 Bytes

Versions: 8

Compression:

Stored size: 539 Bytes

Contents

# frozen_string_literal: true

require_relative "../../application"

module Hanami
  module CLI
    module Commands
      module Monolith
        module DB
          class Create < Application
            desc "Create database"

            def call(**)
              if database.create_command
                out.puts "=> database #{database.name} created"
              else
                out.puts "=> failed to create database #{database.name}"
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hanami-cli-2.0.0.alpha8.1 lib/hanami/cli/commands/monolith/db/create.rb
hanami-cli-2.0.0.alpha8 lib/hanami/cli/commands/monolith/db/create.rb
hanami-cli-2.0.0.alpha7 lib/hanami/cli/commands/monolith/db/create.rb
hanami-cli-2.0.0.alpha6.1 lib/hanami/cli/commands/monolith/db/create.rb
hanami-cli-2.0.0.alpha6 lib/hanami/cli/commands/monolith/db/create.rb
hanami-cli-2.0.0.alpha4 lib/hanami/cli/commands/monolith/db/create.rb
hanami-cli-2.0.0.alpha3 lib/hanami/cli/commands/monolith/db/create.rb
hanami-cli-2.0.0.alpha2 lib/hanami/cli/commands/monolith/db/create.rb