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.8.0 bin/.files/pre-commit.hook
classy_assets-0.7.2 bin/.files/pre-commit.hook
classy_assets-0.7.1 bin/.files/pre-commit.hook
classy_assets-0.7.0 bin/.files/pre-commit.hook
classy_assets-0.6.3 bin/.files/pre-commit.hook
classy_assets-0.6.2 bin/.files/pre-commit.hook
classy_assets-0.6.1 bin/.files/pre-commit.hook
classy_assets-0.6.0 bin/.files/pre-commit.hook
classy_assets-0.5.0 bin/.files/pre-commit.hook
classy_assets-0.4.5 bin/.files/pre-commit.hook
classy_assets-0.4.4 bin/.files/pre-commit.hook
classy_assets-0.4.3 bin/.files/pre-commit.hook
classy_assets-0.4.2 bin/.files/pre-commit.hook
classy_assets-0.4.1 bin/.files/pre-commit.hook
classy_assets-0.4.0 bin/.files/pre-commit.hook
classy_assets-0.3.2 bin/.files/pre-commit.hook
classy_assets-0.3.1 bin/.files/pre-commit.hook
classy_assets-0.3.0 bin/.files/pre-commit.hook
classy_assets-0.2.0 bin/.files/pre-commit.hook
classy_assets-0.1.4 bin/.files/pre-commit.hook