class Guard::Functions
Public Class Methods
new(options={})
click to toggle source
Calls superclass method
# File lib/marv/project/guard/functions.rb, line 4 def initialize(options={}) super end
Public Instance Methods
copy_all_functions(message, clean=nil)
click to toggle source
Copy all functions
# File lib/marv/project/guard/functions.rb, line 24 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
run_all()
click to toggle source
Runs on all command in guard console
# File lib/marv/project/guard/functions.rb, line 14 def run_all copy_all_functions "Rebuilding all functions", true end
run_on_change(paths)
click to toggle source
Called on file(s) modifications
# File lib/marv/project/guard/functions.rb, line 19 def run_on_change(paths) copy_all_functions "Functions have changed, copying over" end
start()
click to toggle source
Runs on marv watch
# File lib/marv/project/guard/functions.rb, line 9 def start copy_all_functions "Copying functions over" end