Sha256: 40a546dc9e336fbba2fff6a0ba2450dac93864895f16476d897422c7e8cd4f8c
Contents?: true
Size: 727 Bytes
Versions: 1
Compression:
Stored size: 727 Bytes
Contents
require 'guard' require 'guard/plugin' module Guard class Templates < ::Guard::Plugin def initialize(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.5.0 | lib/marv/project/guard/templates.rb |