Top Level Namespace

Includes:
ChickenSoup

Defined Under Namespace

Modules: ChickenSoup

Constant Summary

Constants included from ChickenSoup

ChickenSoup::RVM_INFO_FORMAT, ChickenSoup::VERSION

Instance Method Summary collapse

Methods included from ChickenSoup

#_cset, #close_sessions, #compressed_file?, #download_compressed, #fetch_log, #find_all_logs, #log_directory, #lookup_ip_for, #maintenance_filename, #remote_directory_exists?, #remote_file_exists?, #require_if_exists, #run_task, #run_with_ruby_manager, #set_user_to, #tail_log, #vc_log, #verify_variables

Instance Method Details

#read_template(template) ⇒ Object



48
49
50
# File 'lib/chicken_soup/notifiers/email/email-defaults.rb', line 48

def read_template(template)
  File.read(File.join(File.dirname(__FILE__), '..', '..', 'templates', template))
end

#render_erb(template, email_info) ⇒ Object



44
45
46
# File 'lib/chicken_soup/notifiers/email/email-defaults.rb', line 44

def render_erb(template, email_info)
  ERB.new(template, 0, "%<>").result(binding)
end