Sha256: 895ed2b12bfa5f9005c7e4adea27f348c04541d19192843dcc9ef8a4d345be85
Contents?: true
Size: 905 Bytes
Versions: 12
Compression:
Stored size: 905 Bytes
Contents
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
12 entries across 12 versions & 1 rubygems