Module: Rtfd

Defined in:
lib/rtfd.rb,
lib/rtfd/version.rb

Defined Under Namespace

Modules: Yard Classes: Application, GithubHandler

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.load_settingsObject



10
11
12
13
14
15
# File 'lib/rtfd.rb', line 10

def self.load_settings
  settings = YAML::load(File.open('config/rtfd/repos.yml'))
  @repos_path = File.absolute_path(settings['repos_path'])
  @repos = settings['repos']
  [@repos_path, @repos]
end

.reposObject



6
7
8
# File 'lib/rtfd.rb', line 6

def self.repos
  @repos ||= self.load_settings[1]
end

.repos_pathObject



2
3
4
# File 'lib/rtfd.rb', line 2

def self.repos_path
  @repos_path ||= self.load_settings[0]
end