Sha256: 1af0d124a7ff68542c887e14085dcfc93bb406b8add4bbcff0cb0d0e1a34d61f
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
require 'guard' require 'guard/guard' require 'rake' module Guard class Rake < Guard include ::Rake::DSL def initialize(watchers=[], options={}) @task = options[:task] super end def start UI.info "Starting guard-rake #{@task}" load 'Rakefile' true end def stop UI.info "Stopping guard-rake #{@task}" true end def reload stop start end def run_all run_rake_task end def run_on_change(paths) run_rake_task end def run_rake_task UI.info "running #{@task}" ::Rake::Task[@task].execute end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
guard-rake-0.0.1 | lib/guard/rake.rb |