Class: Onceover::CLI::Show::Puppetfile

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

Class Method Summary collapse

Class Method Details

.commandObject



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/onceover/cli/show.rb', line 52

def self.command
  @command ||= Cri::Command.define do
    name 'puppetfile'
    usage 'puppetfile [options]'
    summary 'Shows the current state of the puppetfile'
    description <<-DESCRIPTION
Shows the state of the puppetfile including current versions and
latest versions of each module. Great for checking for updates.
To update all modules run `onceover update puppetfile`. (Hint: once
you have done the update, run the tests to make sure nothing breaks.)
    DESCRIPTION

    run do |opts, args, cmd|
      # Print out the description
      Onceover::Controlrepo.new(opts).print_puppetfile_table
      exit 0
    end
  end
end