lib/hanami/cli/commands/app/command.rb in hanami-cli-2.1.1 vs lib/hanami/cli/commands/app/command.rb in hanami-cli-2.2.0.beta1
- old
+ new
@@ -69,16 +69,16 @@
# @param klass [Hanami::CLI::Command]
# @param args [Array] any additional arguments to pass to the command's `#call` method.
#
# @since 2.0.0
# @api public
- def run_command(klass, *args)
+ def run_command(klass, ...)
klass.new(
out: out,
inflector: app.inflector,
fs: Hanami::CLI::Files,
- ).call(*args)
+ ).call(...)
end
# Executes a given block and prints string to the `out` stream with details of the time
# taken to execute.
#
@@ -108,23 +108,9 @@
if result
out.puts "=> #{desc} in #{(stop - start).round(4)}s"
else
out.puts "!!! => #{desc.inspect} FAILED"
end
- end
-
- # This is NOT AVAILABLE as of the 2.0.0 release.
- #
- # @api private
- def database
- @database ||= Commands::App::DB::Utils::Database[app]
- end
-
- # This is NOT AVAILABLE as of the 2.0.0 release.
- #
- # @api private
- def database_config
- database.config
end
end
end
end
end