class ElectricMonk::Config
Public Class Methods
new(path)
click to toggle source
# File lib/electric_monk.rb, line 48 def initialize(path) @config = TomlRB.load_file(path) end
Public Instance Methods
projects()
click to toggle source
# File lib/electric_monk.rb, line 56 def projects @config.fetch("projects").map do |name, attributes| Project.new( root: root, name: name, origin: attributes.fetch("origin") ) end end
root()
click to toggle source
# File lib/electric_monk.rb, line 52 def root @root ||= File.expand_path(@config.fetch("root")) end