Sha256: 6453bbf6b187a89def9815d5069db91aff891eb647b8fd2795c7c2d75238dd41
Contents?: true
Size: 788 Bytes
Versions: 23
Compression:
Stored size: 788 Bytes
Contents
# Copyright 2006-2008 by Mike Bailey. All rights reserved. Capistrano::Configuration.instance(:must_exist).load do namespace :deprec do namespace :bash do SYSTEM_CONFIG_FILES[:bash] = [ {:template => "bash_global", :path => '.bash_global', :mode => 0644, :owner => 'root:root'} ] task :config_gen do SYSTEM_CONFIG_FILES[:bash].each do |file| deprec2.render_template(:bash, file) end end desc "Push bash config files to server" task :config do deprec2.push_configs(:bash, SYSTEM_CONFIG_FILES[:bash].collect{|file| file.merge(:owner => user)}) deprec2.append_to_file_if_missing('.bashrc', '. ~/.bash_global') end end end end
Version data entries
23 entries across 23 versions & 1 rubygems