lib/hanami/rake_tasks.rb in hanami-2.1.0.rc2 vs lib/hanami/rake_tasks.rb in hanami-2.1.0.rc3
- old
+ new
@@ -42,20 +42,12 @@
# end
if Hanami.bundled?("hanami-assets")
namespace :assets do
task :precompile do
- run_hanami_command("assets compile")
+ Hanami::CLI::Commands::App::Assets::Compile.new.call
end
end
- end
-
- private
-
- @_hanami_cli_bundler = Hanami::CLI::Bundler.new
-
- def run_hanami_command(command)
- @_hanami_cli_bundler.hanami_exec(command)
end
end
Hanami::CLI::RakeTasks.install_tasks