Class: ConfConf::Project

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeProject

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

#developersObject (readonly)

Returns the value of attribute developers.



3
4
5
# File 'lib/conf_conf/project.rb', line 3

def developers
  @developers
end

#environmentsObject (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