class Guard::CocoaPods::Notifier
Public Class Methods
guard_image(result)
click to toggle source
failed | success
# File lib/guard/cocoapods/notifier.rb, line 17 def self.guard_image(result) icon = if result :success else :failed end end
guard_message(result, duration)
click to toggle source
# File lib/guard/cocoapods/notifier.rb, line 5 def self.guard_message(result, duration) case result when 'up-to-date' "Podfile is already up-to-date" when true "Podfile has been installed\nin %.1f seconds." % [duration] else "Podfile can't be installed.\nPlease check this manually." end end
notify(result, duration)
click to toggle source
# File lib/guard/cocoapods/notifier.rb, line 25 def self.notify(result, duration) message = guard_message(result, duration) image = guard_image(result) ::Guard::Notifier.notify(message, :title => 'pod install', :image => image) end