Sha256: 7c65bd1f2f32c89681c30580541c38a09fc021ec862996dbcef80004906274f7

Contents?: true

Size: 751 Bytes

Versions: 5

Compression:

Stored size: 751 Bytes

Contents

require 'deprec-core'
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

5 entries across 5 versions & 1 rubygems

Version Path
deprec-3.1.0.rc16 lib/deprec/recipes/bash.rb
deprec-3.1.0.rc15 lib/deprec/recipes/bash.rb
deprec-3.1.0.rc13 lib/deprec/recipes/bash.rb
deprec-3.1.0.rc12 lib/deprec/recipes/bash.rb
deprec-3.1.0.rc11 lib/deprec/recipes/bash.rb