lib/hanami/cli/commands/app/assets/compile.rb in hanami-cli-2.1.0.rc2 vs lib/hanami/cli/commands/app/assets/compile.rb in hanami-cli-2.1.0.rc3
- old
+ new
@@ -5,25 +5,28 @@
module Hanami
module CLI
module Commands
module App
module Assets
+ # Compiles assets for each slice.
+ #
# @since 2.1.0
# @api private
class Compile < Assets::Command
desc "Compile assets for deployments"
+ private
+
# @since 2.1.0
# @api private
- def cmd_with_args
- result = super
+ def assets_command(slice)
+ cmd = super
if config.subresource_integrity.any?
- result << "--"
- result << "--sri=#{escape(config.subresource_integrity.join(','))}"
+ cmd << "--sri=#{escape(config.subresource_integrity.join(','))}"
end
- result
+ cmd
end
end
end
end
end