Top Level Namespace

Defined Under Namespace

Classes: Sendln

Instance Method Summary collapse

Instance Method Details

#smtp_configObject



5
6
7
8
9
# File 'lib/sendln.rb', line 5

def smtp_config 
  file = File.expand_path('~/.sendln')
  raise "No configuration file found! Please provide one at #{file}" unless File.exists? file
  @config ||= YAML::load(File.open(file))
end