lib/recipes/monit.rb in capitate-0.2.11 vs lib/recipes/monit.rb in capitate-0.2.13

- old
+ new

@@ -3,11 +3,16 @@ desc <<-DESC Restart (HUP) monit process. HUP's the process from the pid file, if it exists. - *monit_pid_path*: Path to monit pid file. _Defaults to <tt>/var/run/monit.pid</tt>_ + <dl> + <dt>monit_pid_path</dt> + <dd>Path to monit pid file</dd> + <dd class="default">Defaults to @/var/run/monit.pid@</dd> + </dl> + "Source":#{link_to_source(__FILE__)} DESC task :restart do fetch_or_default(:monit_pid_path, "/var/run/monit.pid") run_via %{sh -c "[ ! -e '#{monit_pid_path}' ] || kill -HUP `cat #{monit_pid_path}`"} @@ -15,21 +20,31 @@ end desc <<-DESC Unmonitor all. - *monit_bin_path*: Path to monit bin. _Defaults to <tt>monit</tt>_ + <dl> + <dt>monit_bin_path</dt> + <dd>Path to monit bin.</dd> + <dd>Defaults to @monit@</dd> + </dl> + "Source":#{link_to_source(__FILE__)} DESC task :unmonitor_all do fetch_or_default(:monit_bin_path, "monit") run_via "#{monit_bin_path} unmonitor all" end desc <<-DESC Monitor all. - *monit_bin_path*: Path to monit bin. _Defaults to <tt>monit</tt>_ + <dl> + <dt>monit_bin_path</dt> + <dd>Path to monit bin.</dd> + <dd>Defaults to @monit@</dd> + </dl> + "Source":#{link_to_source(__FILE__)} DESC task :monitor_all do fetch_or_default(:monit_bin_path, "monit") run_via "#{monit_bin_path} monitor all" \ No newline at end of file