class Object

Public Instance Methods

get_livefile_template() click to toggle source
# File lib/utils.rb, line 15
def get_livefile_template
  file_path = File.join(File.dirname(File.expand_path(__FILE__)), 'Livefile.template')

  File.open(file_path, 'rb').read
end
load_livefile() click to toggle source
# File lib/utils.rb, line 21
def load_livefile
  YAML.load_file('Livefile')
end
log(msg, sender='') click to toggle source
# File lib/utils.rb, line 8
def log(msg, sender='')
  unless sender.empty?
    puts sender.green
  end
  puts "#{msg}".light_green
end
log_error(msg) click to toggle source
# File lib/utils.rb, line 4
def log_error(msg)
    puts "#{msg}".red
end