Sha256: fa3d1054cae4b5c19e2d582277b0a230c810dde6b3c6036b952cff4fdfc6ef2a

Contents?: true

Size: 268 Bytes

Versions: 3

Compression:

Stored size: 268 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
guard-rails-assets-0.0.9 lib/guard/rails-assets/cli_runner.rb
guard-rails-assets-0.0.8 lib/guard/rails-assets/cli_runner.rb
guard-rails-assets-0.0.7 lib/guard/rails-assets/cli_runner.rb