Class: Guard::Migrate::Notify

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/migrate/notify.rb

Instance Method Summary collapse

Constructor Details

#initialize(result) ⇒ Notify

Returns a new instance of Notify.



4
5
6
# File 'lib/guard/migrate/notify.rb', line 4

def initialize(result)
  @result = result
end

Instance Method Details

#notifyObject



8
9
10
11
12
13
14
# File 'lib/guard/migrate/notify.rb', line 8

def notify
  Guard::Compat::UI.notify(
    message,
    title: 'Database Migrations',
    image: image
  )
end