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 "Shows the state of either the controlrepo or the Puppetfile\n    DESCRIPTION\n\n    run do |opts, args, cmd|\n      # Print out the description\n      puts cmd.help(:verbose => opts[:verbose])\n      exit 0\n    end\n  end\nend\n"