Sha256: 7ece0c7e629c703d1910c29678c9ec144931d8d8ba3cb14504ae5ef23c7a225d
Contents?: true
Size: 971 Bytes
Versions: 6
Compression:
Stored size: 971 Bytes
Contents
require 'guard' require 'guard/guard' module Guard class MarvFunctions < ::Guard::Guard def initialize(watchers=[], options={}) super end def start UI.info "Copying functions over" ::Marv::Guard.builder.copy_functions ::Marv::Guard.builder.copy_includes ::Marv::Guard.builder.copy_extras end def run_all UI.info "Rebuilding all functions" ::Marv::Guard.builder.clean_functions ::Marv::Guard.builder.copy_functions ::Marv::Guard.builder.clean_includes ::Marv::Guard.builder.copy_includes ::Marv::Guard.builder.copy_extras end # Called on file(s) modifications def run_on_change(paths) UI.info "Functions have changed, copying over" ::Marv::Guard.builder.clean_functions ::Marv::Guard.builder.copy_functions ::Marv::Guard.builder.clean_includes ::Marv::Guard.builder.copy_includes ::Marv::Guard.builder.copy_extras end end end
Version data entries
6 entries across 6 versions & 1 rubygems