Class: R10K::Deployment
- Inherits:
-
Object
show all
- Defined in:
- lib/r10k/deployment.rb
Defined Under Namespace
Classes: EnvironmentCollection
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of Deployment.
23
24
25
|
# File 'lib/r10k/deployment.rb', line 23
def initialize
@config = R10K::Config.new
end
|
Class Method Details
.collection ⇒ Object
18
19
20
|
# File 'lib/r10k/deployment.rb', line 18
def collection
instance.collection
end
|
.config ⇒ Object
14
15
16
|
# File 'lib/r10k/deployment.rb', line 14
def config
instance.config
end
|
.instance ⇒ Object
10
11
12
|
# File 'lib/r10k/deployment.rb', line 10
def instance
@myself ||= self.new
end
|
Instance Method Details
#collection ⇒ Object
38
39
40
41
42
|
# File 'lib/r10k/deployment.rb', line 38
def collection
@config.load_config unless @config.loaded?
@collection ||= R10K::Deployment::EnvironmentCollection.new(@config)
@collection
end
|
#config ⇒ Object
27
28
29
|
# File 'lib/r10k/deployment.rb', line 27
def config
@config
end
|
#environments ⇒ Array<R10K::Root>
34
35
36
|
# File 'lib/r10k/deployment.rb', line 34
def environments
collection.to_a
end
|