11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/onceover/cli/run.rb', line 11
def self.command
@cmd ||= Cri::Command.define do
name 'run'
usage 'run [spec|acceptance]'
summary 'Runs either the spec or acceptance tests'
description <<-DESCRIPTION
This will run the full set of spec or acceptance tests.
This includes deploying using r10k and running all custom tests.
DESCRIPTION
optional :t, :tags, 'A list of tags. Only tests with these tags will be run'
optional :c, :classes, 'A list of classes. Only tests with these classes will be run'
optional :n, :nodes, 'A list of nodes. Only tests with these nodes will be run'
run do |opts, args, cmd|
puts cmd.help(:verbose => opts[:verbose])
exit 0
end
end
end
|