lib/nanoc3/cli/commands/watch.rb in nanoc3-3.2.0a2 vs lib/nanoc3/cli/commands/watch.rb in nanoc3-3.2.0a3
- old
+ new
@@ -29,16 +29,12 @@
[]
end
def run(options, arguments)
require 'fssm'
+ require 'pathname'
- Signal.trap("INT") do
- puts
- exit
- end
-
@notifier = Notifier.new
# Define rebuilder
rebuilder = lambda do |base, relative|
# Determine filename
@@ -117,23 +113,23 @@
# created.
#
# @param [String] message The message to include in the notification
def notify(message)
return if tool.nil?
- send(tool.tr('-', '_'), message, params)
+ send(tool.tr('-', '_'), message)
end
private
def tool
@tool ||= TOOLS.find { |t| !`which #{t}`.empty? }
end
- def growlnotify(message, params={})
+ def growlnotify(message)
system('growlnotify', '-m', message)
end
- def notify_send(message, params={})
+ def notify_send(message)
system('notify-send', message)
end
end