Module: SimplePerf::CLI

Defined in:
lib/simple_perf/cli.rb,
lib/simple_perf/cli/stop.rb,
lib/simple_perf/cli/chaos.rb,
lib/simple_perf/cli/deploy.rb,
lib/simple_perf/cli/shared.rb,
lib/simple_perf/cli/status.rb,
lib/simple_perf/cli/update.rb,
lib/simple_perf/cli/destroy.rb,
lib/simple_perf/cli/results.rb,
lib/simple_perf/cli/start_custom.rb,
lib/simple_perf/cli/start_jmeter.rb,
lib/simple_perf/cli/create_bucket.rb,
lib/simple_perf/cli/create_jmeter.rb,
lib/simple_perf/cli/start_gatling.rb,
lib/simple_perf/cli/create_gatling.rb,
lib/simple_perf/cli/gatling_results.rb

Defined Under Namespace

Modules: Shared Classes: Chaos, CreateBucket, CreateGatling, CreateJmeter, Deploy, Destroy, GatlingResults, Results, StartCustom, StartGatling, StartJmeter, Status, Stop, Update

Class Method Summary collapse

Class Method Details

.startObject



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/simple_perf/cli.rb', line 22

def self.start
  cmd = ARGV.shift

  case cmd
  when 'start_jmeter'
    CLI::StartJmeter.new.execute
  when 'start_gatling'
    CLI::StartGatling.new.execute
  when 'start_custom'
    CLI::StartCustom.new.execute
  when 'stop'
    CLI::Stop.new.execute
  when 'deploy'
    CLI::Deploy.new.execute
  when 'create_jmeter'
    CLI::CreateJmeter.new.execute
  when 'create_gatling'
    CLI::CreateGatling.new.execute
  when 'create_bucket'
    CLI::CreateBucket.new.execute
  when 'destroy'
    CLI::Destroy.new.execute
  when 'status'
    CLI::Status.new.execute
  when 'results'
    CLI::Results.new.execute
  when 'update'
    CLI::Update.new.execute
  when 'chaos'
    CLI::Chaos.new.execute
  when 'gatling_results'
    CLI::GatlingResults.new.execute
  when '-h'
    puts "simple_perf [start_jmeter|start_gatling|start_custom|stop|deploy|create_jmeter|create_gatling|create_bucket|destroy|status|results|update|chaos|gatling_results] [options]"
    puts "Append -h for help on specific subcommand."
  when '-v'
    puts SimplePerf::VERSION
  else
    puts "Unknown command: '#{cmd}'."
    puts "simple_perf [start_jmeter|start_gatling|start_custom|stop|deploy|create_jmeter|create_gatling|create_bucket|destroy|status|results|update|chaos|gatling_results] [options]"
    puts "Append -h for help on specific subcommand."
    exit 1
  end
end