lib/fulmar/domain/service/configuration_service.rb in fulmar-1.6.4 vs lib/fulmar/domain/service/configuration_service.rb in fulmar-1.7.0
- old
+ new
@@ -1,7 +1,8 @@
require 'yaml'
require 'pp'
+require 'fulmar/domain/model/project'
module Fulmar
module Domain
module Service
# Loads and prepares the configuration from the yaml file
@@ -55,9 +56,13 @@
@base_path ||= lookup_base_path
end
def configuration
@config ||= load_configuration
+ end
+
+ def project
+ @project ||= Fulmar::Domain::Model::Project.new(configuration[:project])
end
def method_missing(name)
environment(name) if configuration[:environments][name]
end