class Guard::BowerRails

Constants

VERSION

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method
# File lib/guard/bower_rails.rb, line 6
def initialize(options = {})
  super
end

Public Instance Methods

reload() click to toggle source
# File lib/guard/bower_rails.rb, line 17
def reload
  bower_install
end
run_all() click to toggle source
# File lib/guard/bower_rails.rb, line 21
def run_all
  bower_install
end
run_on_additions(paths) click to toggle source
# File lib/guard/bower_rails.rb, line 25
def run_on_additions(paths)
  bower_install
end
run_on_modifications(paths) click to toggle source
# File lib/guard/bower_rails.rb, line 29
def run_on_modifications(paths)
  bower_install
end
run_on_removals(paths) click to toggle source
# File lib/guard/bower_rails.rb, line 33
def run_on_removals(paths)
  bower_install
end
start() click to toggle source
# File lib/guard/bower_rails.rb, line 10
def start
  bower_install
end
stop() click to toggle source
# File lib/guard/bower_rails.rb, line 14
def stop
end

Private Instance Methods

bower_install() click to toggle source
# File lib/guard/bower_rails.rb, line 39
def bower_install
  if system "rake 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