Sha256: 8250ebd5eb47d8f56b7f86932d94bd07c424946dd6fa565e8dfb34b23d265577
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
namespace :memcached do desc <<-DESC Create memcached yaml in shared path. "Source":#{link_to_source(__FILE__)} DESC task_arg(:memcached_namespace, "Namespace") task_arg(:memcached_ttl, "TTL in seconds", :default => 3600) task_arg(:memcached_readonly, "Read only enabled", :default => false) task_arg(:memcached_urlencode, "URL encode enabled", :default => false) task_arg(:memcached_c_threshold, "C Threshold", :default => 10000) task_arg(:memcached_compression, "Compression enabed", :default => true) task_arg(:memcached_debug, "Debug enabled", :default => false) task_arg(:memcached_servers, "List of servers", :default => ["localhost:11211"], :default_desc => "[\"localhost:11211\"]") task_arg(:memcached_yml_template, "Memcached yml template", :default => "memcached/memcached.yml.erb") task :setup do put(memcached_yml_template, "#{shared_path}/config/memcached.yml") end desc "Symlink memcached configuration after deploy." task :update_code, :roles => :app do run "ln -nfs #{shared_path}/config/memcached.yml #{release_path}/config/memcached.yml" end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
calas-capitate-0.3.6 | lib/recipes/memcached.rb |
capitate-0.3.6 | lib/recipes/memcached.rb |