Class: Onceover::CLI::Update::Puppetfile
- Inherits:
-
Object
- Object
- Onceover::CLI::Update::Puppetfile
- Defined in:
- lib/onceover/cli/update.rb
Class Method Summary collapse
Class Method Details
.command ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/onceover/cli/update.rb', line 24 def self.command @command ||= Cri::Command.define do name 'puppetfile' usage 'puppetfile' summary 'Update all modules in the Puppetfile' description <<-DESCRIPTION Updates all modules to their latest version and writes that file back onto the system over the original Puppetfile. DESCRIPTION run do |opts, args, cmd| # Print out the description Onceover::Controlrepo.new(opts).update_puppetfile exit 0 end end end |