Sha256: f2cc6f67a0a838843745cd4446282061cff3ca14c868d9bc3bb84211fbf703aa
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
namespace :merb do namespace :centos do desc <<-DESC Setup merb. "Source":#{link_to_source(__FILE__)} DESC task_arg(:merb_nodes, "Number of merb daemons to run") task_arg(:merb_port, "Starting port for merb nodes. If there are 3 merb nodes with port 9000, then instances will be at 9000, 9001, and 9002") task_arg(:merb_command_path, "The path for merb startup command", :default => "merb") task_arg(:merb_pid_path, "Path for merb pids", :default => Proc.new{"#{shared_path}/pids/merb.pid"}, :default_desc => "\#{shared_path}/pids/merb.pid") task_arg(:merb_root, "Directory for merb root", :set => :current_path) task_arg(:merb_application, "Merb application name", :default => Proc.new{"merb_#{application}"}, :default_desc => "merb_\#{application}") task_arg(:merb_initscript_name, "Initscript name", :default => Proc.new{"merb_#{application}"}, :default_desc => "merb_\#{application}") task :setup do utils.install_template("merb/merb.initd.centos.erb", "/etc/init.d/#{merb_initscript_name}") run_via "/sbin/chkconfig --level 345 #{merb_initscript_name} on" end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
calas-capitate-0.3.6 | lib/recipes/centos/merb.rb |
capitate-0.3.6 | lib/recipes/centos/merb.rb |