Sha256: 9220106504559f950d7b9ffbc5a1f044ec5d011b056e4490a0724652ee8cd4ec
Contents?: true
Size: 733 Bytes
Versions: 2
Compression:
Stored size: 733 Bytes
Contents
module Capitate::Plugins::Utils # Symlink source to dest # # ==== Options # +args+:: Arguments. If argument is hash, then key is symlinked to value. # # ==== Examples # ln("src/foo" => "dest/foo") # Run: ln -nfs src/foo dest/foo # def ln(*args) args.each do |arg| if arg.is_a?(Hash) arg.each do |src, dest| run_via "ln -nfs #{src} #{dest}" end end end end def install_template(template_path, destination) put template.load("memcached/memcached.monitrc.erb"), "/tmp/memcached.monitrc" run_via "install -o root /tmp/memcached.monitrc #{monit_conf_dir}/memcached.monitrc" end end Capistrano.plugin :utils, Capitate::Plugins::Utils
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capitate-0.2.7 | lib/capitate/plugins/utils.rb |
capitate-0.2.8 | lib/capitate/plugins/utils.rb |