Class: Onceover::CLI::Show

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

Defined Under Namespace

Classes: Puppetfile, Repo

Class Method Summary collapse

Class Method Details

.commandObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/onceover/cli/show.rb', line 9

def self.command
  @command ||= Cri::Command.define do
    name 'show'
    usage 'show [controlrepo|puppetfile]'
    summary 'Shows the current state of things'
    description <<-DESCRIPTION
Shows the state of either the controlrepo or the Puppetfile
    DESCRIPTION

    run do |opts, args, cmd|
      # Print out the description
      puts cmd.help(:verbose => opts[:verbose])
      exit 0
    end
  end
end