Sha256: 61a2dd1d7513a71a1f36fb732abeb9eb3a4f845b4d9c66738e4d6f973a2773c6
Contents?: true
Size: 738 Bytes
Versions: 1
Compression:
Stored size: 738 Bytes
Contents
require 'guard' require 'guard/guard' module Guard class Templates < ::Guard::Guard def initialize(watchers=[], options={}) super end # Runs on marv watch def start copy_all_templates "Copying templates over" end # Runs on all command in guard console def run_all copy_all_templates "Rebuilding all templates", true end # Called on file(s) modifications def run_on_change(paths) copy_all_templates "Templates have changed, copying over" end def copy_all_templates(message, clean=nil) builder = Marv::Project::Guard.builder.templates UI.info message builder.clean_templates unless clean.nil? builder.copy_templates end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marv-0.4.0 | lib/marv/project/guard/templates.rb |