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 "Shows the state of the puppetfile including current versions and\nlatest versions of each module. Great for checking for updates.\nTo update all modules run `onceover update puppetfile`. (Hint: once\nyou have done the update, run the tests to make sure nothing breaks.)\n    DESCRIPTION\n\n    run do |opts, args, cmd|\n      # Print out the description\n      Onceover::Controlrepo.new(opts).print_puppetfile_table\n      exit 0\n    end\n  end\nend\n"