Class: R10K::Task::Deployment::Display Deprecated

Inherits:
Base
  • Object
show all
Defined in:
lib/r10k/task/deployment.rb

Overview

Deprecated.

Constant Summary

Constants included from Logging

Logging::LOG_LEVELS

Instance Attribute Summary collapse

Attributes inherited from Base

#task_runner

Instance Method Summary collapse

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

#puppetfileObject

Returns the value of attribute puppetfile.



139
140
141
# File 'lib/r10k/task/deployment.rb', line 139

def puppetfile
  @puppetfile
end

Instance Method Details

#callObject



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