27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/onceover/cli/show.rb', line 27
def self.command
@cmd ||= Cri::Command.define do
name 'repo'
usage 'repo [options]'
summary 'Shows the current state of the Controlrepo'
description "Shows the state of the repo as the tool sees it.\nUseful for debugging.\n DESCRIPTION\n\n run do |opts, args, cmd|\n repo = Onceover::Controlrepo.new(opts)\n config = Onceover::TestConfig.new(repo.onceover_yaml, opts)\n # Print out the description\n puts \"--- Controlrepo Information ---\"\n puts repo.to_s\n puts \"\\n--- Test Configuration ---\"\n puts config.to_s\n exit 0\n end\n end\nend\n"
|