Class: R10K::Task::Deployment::Display Deprecated
- Defined in:
- lib/r10k/task/deployment.rb
Overview
Deprecated.
Constant Summary
Constants included from Logging
Instance Attribute Summary collapse
-
#puppetfile ⇒ Object
Returns the value of attribute puppetfile.
Attributes inherited from Base
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(deployment) ⇒ Display
constructor
A new instance of Display.
Methods included from Logging
formatter, included, level, level=, levels, #logger, #logger_name, outputter, parse_level
Constructor Details
#initialize(deployment) ⇒ Display
Returns a new instance of Display.
141 142 143 |
# File 'lib/r10k/task/deployment.rb', line 141 def initialize(deployment) @deployment = deployment end |
Instance Attribute Details
#puppetfile ⇒ Object
Returns the value of attribute puppetfile.
139 140 141 |
# File 'lib/r10k/task/deployment.rb', line 139 def puppetfile @puppetfile end |
Instance Method Details
#call ⇒ Object
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/r10k/task/deployment.rb', line 145 def call @deployment.environments.each do |env| puts " - #{env.dirname}" if @puppetfile puppetfile = env.puppetfile puppetfile.load puppetfile.modules.each do |mod| puts " - #{mod.name} (#{mod.version})" end end end end |