Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add digest option to CLI runner

  • Loading branch information...
commit 6bc9ef43c95e9ef8682f57d4e872e28601df88e4 1 parent 039f3b4
@dnagir authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/guard/rails-assets/cli_runner.rb
View
6 lib/guard/rails-assets/cli_runner.rb
@@ -2,10 +2,14 @@ module Guard
class RailsAssets::CliRunner
def initialize(options={})
@rails_env = (options[:rails_env] || 'test').to_s
+ @digest = options[:digest]
+ @digest = true if @digest.nil?
end
def compile_assets
- system "RAILS_ENV=#{@rails_env} bundle exec rake assets:clean assets:precompile"
+ task = "assets:precompile"
+ task += ":nondigest" unless @digest
+ system "RAILS_ENV=#{@rails_env} bundle exec rake assets:clean #{task}"
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.