Sha256: 06a94d8cd5b802822f7d6e61ef2cd245a66ca2ee0ec373945e4e2ab78e480643
Contents?: true
Size: 651 Bytes
Versions: 2
Compression:
Stored size: 651 Bytes
Contents
require 'guard' require 'guard/guard' module Guard class MarvAssets < ::Guard::Guard def initialize(watchers=[], options={}) super end # Runs on marv watch def start build_assets("Building all assets", true) end # Runs on all command in guard console def run_all build_assets("Rebuilding all assets", true) end # Called on file(s) modifications def run_on_change(paths) build_assets("Assets have changed, rebuilding...", nil) end # Build assets def build_assets(message, clean) UI.info message ::Marv::Guard.builder.build_assets(clean) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
marv-0.3.2 | lib/guard/marv/assets.rb |
marv-0.3.1 | lib/guard/marv/assets.rb |