Class: ConfConf::Project
- Inherits:
-
Object
- Object
- ConfConf::Project
- Defined in:
- lib/conf_conf/project.rb,
lib/conf_conf/project/developer.rb,
lib/conf_conf/project/developers.rb,
lib/conf_conf/project/environment.rb,
lib/conf_conf/project/environments.rb,
lib/conf_conf/project/environment/storage.rb
Defined Under Namespace
Classes: Developer, Developers, Environment, Environments
Instance Attribute Summary collapse
-
#developers ⇒ Object
readonly
Returns the value of attribute developers.
-
#environments ⇒ Object
readonly
Returns the value of attribute environments.
Instance Method Summary collapse
- #inconsistencies(environment) ⇒ Object
-
#initialize ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize ⇒ Project
Returns a new instance of Project.
5 6 7 8 |
# File 'lib/conf_conf/project.rb', line 5 def initialize @developers = Developers.load(self) @environments = Environments.new(self) end |
Instance Attribute Details
#developers ⇒ Object (readonly)
Returns the value of attribute developers.
3 4 5 |
# File 'lib/conf_conf/project.rb', line 3 def developers @developers end |
#environments ⇒ Object (readonly)
Returns the value of attribute environments.
3 4 5 |
# File 'lib/conf_conf/project.rb', line 3 def environments @environments end |
Instance Method Details
#inconsistencies(environment) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/conf_conf/project.rb', line 10 def inconsistencies(environment) all_environment_variable_names = Set.new environments.to_a.each do |other_environment| all_environment_variable_names += other_environment.variables.keys end all_environment_variable_names - environment.variables.keys end |