Class: Guard::Staticise::Notifier

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/staticise/notifier.rb

Class Method Summary collapse

Class Method Details

.image(result) ⇒ Object



5
6
7
# File 'lib/guard/staticise/notifier.rb', line 5

def image(result)
  result ? :success: :faild
end

.notify(result, message) ⇒ Object



9
10
11
# File 'lib/guard/staticise/notifier.rb', line 9

def notify(result, message)
  ::Guard::Notifier.notify(message, :title => 'Guard::Staticise', :image => image(result))
end