Class: Onceover::CLI::Update::Puppetfile

Inherits:
Object
  • Object
show all
Defined in:
lib/onceover/cli/update.rb

Class Method Summary collapse

Class Method Details

.commandObject



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 "Updates all modules to their latest version and writes that\nfile back onto the system over the original Puppetfile.\n    DESCRIPTION\n\n    run do |opts, args, cmd|\n      # Print out the description\n      Onceover::Controlrepo.new(opts).update_puppetfile\n      exit 0\n    end\n  end\nend\n"