class Guard::Bower
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
# File lib/guard/bower.rb, line 6 def initialize(options = {}) super end
Public Instance Methods
reload()
click to toggle source
# File lib/guard/bower.rb, line 14 def reload bower_install end
run_on_changes(paths)
click to toggle source
# File lib/guard/bower.rb, line 18 def run_on_changes(paths) bower_install end
start()
click to toggle source
# File lib/guard/bower.rb, line 10 def start bower_install end
Private Instance Methods
bower_install()
click to toggle source
# File lib/guard/bower.rb, line 24 def bower_install if system "bower install" UI.info "Bower install" Notifier.notify "Bower install" true else UI.error "Bower install failed" Notifier.notify "Bower install failed", :title => 'Bower', :image => :failed false end end