Sha256: 5b625ada32e31609345e3a2c7f3f5b0d89cf0aff6bb8b41ed207f117e8258592
Contents?: true
Size: 654 Bytes
Versions: 2
Compression:
Stored size: 654 Bytes
Contents
require 'guard' require 'guard/guard' module Guard class MarvFolders < ::Guard::Guard def initialize(watchers=[], options={}) super end # Runs on marv watch def start copy_folders("Copying folders over", true) end # Runs on all command in guard console def run_all copy_folders("Rebuilding all folders", true) end # Called on file(s) modifications def run_on_change(paths) copy_folders("Folders have changed, copying over", nil) end # Copy folders def copy_folders(message, clean) UI.info message ::Marv::Guard.builder.copy_folders(clean) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
marv-0.3.2 | lib/guard/marv/folders.rb |
marv-0.3.1 | lib/guard/marv/folders.rb |