Class: R10K::Task::Deployment::Display
- Defined in:
- lib/r10k/task/deployment.rb
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.
128 129 130 |
# File 'lib/r10k/task/deployment.rb', line 128 def initialize(deployment) @deployment = deployment end |
Instance Attribute Details
#puppetfile ⇒ Object
Returns the value of attribute puppetfile.
126 127 128 |
# File 'lib/r10k/task/deployment.rb', line 126 def puppetfile @puppetfile end |
Instance Method Details
#call ⇒ Object
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/r10k/task/deployment.rb', line 132 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 |