lib/hanami/rake_tasks.rb in hanami-2.0.0.rc1 vs lib/hanami/rake_tasks.rb in hanami-2.0.0
- old
+ new
@@ -1,13 +1,10 @@
# frozen_string_literal: true
-require "hanami/cli/rake_tasks"
-require "hanami/cli/command_line"
+require "hanami/cli"
Hanami::CLI::RakeTasks.register_tasks do
- @_hanami_command_line = Hanami::CLI::CommandLine.new
-
desc "Load the app environment"
task :environment do
require "hanami/prepare"
end
@@ -51,11 +48,13 @@
end
end
private
+ @_hanami_cli_bundler = Hanami::CLI::Bundler.new
+
def run_hanami_command(command)
- @_hanami_command_line.call(command)
+ @_hanami_cli_bundler.exec(command)
end
end
Hanami::CLI::RakeTasks.install_tasks