Sha256: cfa637fa26908513aeaaba4a4747dee4d98959191b055f7e80a8585e4aabfe38

Contents?: true

Size: 555 Bytes

Versions: 2

Compression:

Stored size: 555 Bytes

Contents

# What file is used for talks startup configuration.
initfile = if File.exists?('./.talksrc')
  './.talksrc'
elsif !defined?(OPTS_INITFILE)
  if RUBY_PLATFORM =~ /mswin/
    # Of course MS Windows has to be different
    OPTS_INITFILE = 'talks.ini'
    HOME_DIR =  (ENV['HOME'] ||
    ENV['HOMEDRIVE'].to_s + ENV['HOMEPATH'].to_s).to_s
  else
    OPTS_INITFILE = '.talksrc'
    HOME_DIR = ENV['HOME'].to_s
  end
  File.join(HOME_DIR, OPTS_INITFILE)
end


if File.exist?(initfile)
  Talks.configure(YAML.load_file(initfile))
else
  Talks.configure({})
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
talks-0.1.0 lib/talks/runner.rb
talks-0.0.5 lib/talks/runner.rb