Sha256: 5dc74d27e0c1025265fa7acba00cf098095be95a89ca160e4354c3ac4f9fe2f3

Contents?: true

Size: 1.85 KB

Versions: 13

Compression:

Stored size: 1.85 KB

Contents

# Create this file as ~/.watchmonkey/config.rb
# This file is eval'd in the application object's context after it's initialized!

# Change option defaults (arguments will still override these settings)
# For options refer to application.rb#initialize
#     https://github.com/2called-chaos/watchmonkey_cli/blob/master/lib/watchmonkey_cli/application.rb
@opts[:threads] = 50



# Integrate ReQueue (module for infinite checking)
# For options refer to the source code:
#     https://github.com/2called-chaos/watchmonkey_cli/blob/master/lib/watchmonkey_cli/hooks/requeue.rb
if @argv.delete("--requeue") || @argv.delete("--reQ")
  require "watchmonkey_cli/hooks/requeue"
  WatchmonkeyCli::Requeue.hook!(self)

  # change options after hooking!
  @opts[:threads] = 8 # don't need as many here because speed is not a concern
  @opts[:default_requeue] = 60 # default delay before requeuing checker, override with `every: 10.minutes` checker option
end



# Integrate Platypus (module for MacOS tool Platypus)
# For options refer to the source code:
#     https://github.com/2called-chaos/watchmonkey_cli/blob/master/lib/watchmonkey_cli/hooks/platypus.rb
if @argv.delete("--platypus")
  require "watchmonkey_cli/hooks/platypus"

  # Options:
  #   * notifications(1)
  #       1 - silent notifications (OS X notifications)
  #       2 - notifications with sound (OS X notifications)
  #       everything else disables notifications (and renders the hook somewhat useless)
  #   * progress(true)
  #       outputs "PROGRESS:##" for Platypus ProgressBar interface (useless if HTML is enabled)
  #   * html(false)
  #       outputs HTML for Platypus WebView interface
  #   * draw_delay(1)
  #       seconds between HTML updates (useless if HTML is disabled)
  WatchmonkeyCli::Platypus.hook!(self, notifications: 1, html: true, draw_delay: 3)

  @opts[:colorize] = false # doesn't render in platypus
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
watchmonkey_cli-1.10.0 doc/config_example.rb
watchmonkey_cli-1.9.1 doc/config_example.rb
watchmonkey_cli-1.9.0 doc/config_example.rb
watchmonkey_cli-1.8.6 doc/config_example.rb
watchmonkey_cli-1.8.5 doc/config_example.rb
watchmonkey_cli-1.8.4 doc/config_example.rb
watchmonkey_cli-1.8.3 doc/config_example.rb
watchmonkey_cli-1.8.2 doc/config_example.rb
watchmonkey_cli-1.8.1 doc/config_example.rb
watchmonkey_cli-1.8 doc/config_example.rb
watchmonkey_cli-1.7.1 doc/config_example.rb
watchmonkey_cli-1.7 doc/config_example.rb
watchmonkey_cli-1.6 doc/config_example.rb