Sha256: 37349150b31b550a9542e2eaddac8699dacbd9e272cab0366cc443126b204267

Contents?: true

Size: 313 Bytes

Versions: 46

Compression:

Stored size: 313 Bytes

Contents

#!/usr/bin/env ruby

def assets_updated?
  `git diff-index --name-only HEAD | egrep '^app/assets'` != ""
end

begin
  if assets_updated?
    puts system('bundle exec rake assets:precompile:all RACK_ENV=production')
    puts system('git add public/assets')
  end
  exit 0
rescue => e
  puts e.message
  exit 1
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
classy_assets-0.14.5 bin/.files/pre-commit.hook
classy_assets-0.14.4 bin/.files/pre-commit.hook
classy_assets-0.14.2 bin/.files/pre-commit.hook
classy_assets-0.14.1 bin/.files/pre-commit.hook
classy_assets-0.14.0 bin/.files/pre-commit.hook
classy_assets-0.13.0 bin/.files/pre-commit.hook
classy_assets-0.12.0 bin/.files/pre-commit.hook
classy_assets-0.11.4 bin/.files/pre-commit.hook
classy_assets-0.11.3 bin/.files/pre-commit.hook
classy_assets-0.11.2 bin/.files/pre-commit.hook
classy_assets-0.11.1 bin/.files/pre-commit.hook
classy_assets-0.11.0 bin/.files/pre-commit.hook
classy_assets-0.10.0 bin/.files/pre-commit.hook
classy_assets-0.9.4 bin/.files/pre-commit.hook
classy_assets-0.9.3 bin/.files/pre-commit.hook
classy_assets-0.9.2 bin/.files/pre-commit.hook
classy_assets-0.9.1 bin/.files/pre-commit.hook
classy_assets-0.9.0 bin/.files/pre-commit.hook
classy_assets-0.8.2 bin/.files/pre-commit.hook
classy_assets-0.8.1 bin/.files/pre-commit.hook