Class: Onceover::CLI::Run

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

Defined Under Namespace

Classes: Acceptance, Spec

Class Method Summary collapse

Class Method Details

.commandObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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 "This will run the full set of spec or acceptance tests.\nThis includes deploying using r10k and running all custom tests.\n    DESCRIPTION\n\n    optional :t,  :tags,             'A list of tags. Only tests with these tags will be run'\n    optional :c,  :classes,          'A list of classes. Only tests with these classes will be run'\n    optional :n,  :nodes,            'A list of nodes. Only tests with these nodes will be run'\n    optional :s,  :skip_r10k,        'Skip the r10k step'\n    optional :sv, :strict_variables, 'Run with strict_variables set to yes'\n\n    run do |opts, args, cmd|\n      puts cmd.help(:verbose => opts[:verbose])\n      exit 0\n    end\n  end\nend\n"