Module: ApplicationHelper

Defined in:
lib/templates/default/app/helpers/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#personalize_scriptObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/templates/default/app/helpers/application_helper.rb', line 2

def personalize_script
  path = File.expand_path("../../scripts/personalize/#{ENV['USER']}.sh", __FILE__)
  if File.exist?(path)
    script =<<EOL
#######################################
# personalize script added by ApplicationHelper#personalize_script for #{ENV['USER']}
/opt/scripts/personalize/tung.sh
EOL
  end
end