lib/cumuli/project_manager/manager.rb in cumuli-0.4.1 vs lib/cumuli/project_manager/manager.rb in cumuli-0.5.0

- old
+ new

@@ -38,9 +38,13 @@ def projects @projects ||= config.map{ |name, opts| Cumuli::ProjectManager::Project.new(name, opts) } end + def project(name) + projects.detect{|p| p.name == name} + end + def config @config ||= YAML.load( File.read(config_path) ) end end end