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
@command ||= Cri::Command.define do
name 'repo'
usage 'repo [options]'
summary 'Shows the current state of the Controlrepo'
description <<-DESCRIPTION
Shows the state of the repo as the tool sees it.
Useful for debugging.
DESCRIPTION
run do |opts, args, cmd|
repo = Onceover::Controlrepo.new(opts)
config = Onceover::TestConfig.new(repo.onceover_yaml, opts)
puts "--- Controlrepo Information ---"
puts repo.to_s
puts "\n--- Test Configuration ---"
puts config.to_s
exit 0
end
end
end
|