guard-rails-assets/lib/guard/rails-assets/cli_runner.rb
2011-09-04 18:09:45 +10:00

12 lines
268 B
Ruby

module Guard
class RailsAssets::CliRunner
def initialize(options={})
@rails_env = (options[:rails_env] || 'test').to_s
end
def compile_assets
system "RAILS_ENV=#{@rails_env} bundle exec rake assets:clean assets:precompile"
end
end
end