Sha256: b3193446948f8bc94b9df18abd783f62208c79fe97fc4d3455dcf4b2d16bb6d4
Contents?: true
Size: 945 Bytes
Versions: 1
Compression:
Stored size: 945 Bytes
Contents
require 'guard' require 'guard/plugin' module Guard class Functions < ::Guard::Plugin def initialize(options={}) super end # Runs on marv watch def start copy_all_functions "Copying functions over" end # Runs on all command in guard console def run_all copy_all_functions "Rebuilding all functions", true end # Called on file(s) modifications def run_on_change(paths) copy_all_functions "Functions have changed, copying over" end # Copy all functions def copy_all_functions(message, clean=nil) builder = Marv::Project::Guard.builder.functions UI.info message unless clean.nil? builder.clean_functions builder.clean_includes builder.clean_folders Marv::Project::Guard.builder.assets.build_assets end builder.copy_functions builder.copy_includes builder.copy_folders end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marv-0.5.0 | lib/marv/project/guard/functions.rb |