travis-web/lib/guard/assets.rb
2012-10-06 15:28:11 +02:00

39 lines
526 B
Ruby

$stdout.sync = true
require 'guard'
require 'guard/guard'
module Guard
class Assets < Guard
def start
UI.info "Guard::Assets is running."
run
end
def run_all
run
end
def reload
run
end
def run_on_change(paths)
puts "change: #{paths.inspect}"
run
end
private
def run
started = Time.now
print 'Compiling ... '
system 'bundle exec rakep'
puts "done (#{(Time.now - started).round(2)}s)."
end
end
end