simple_perf 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/simple_perf/cli/create_bucket.rb +6 -5
- data/lib/simple_perf/cli/create_gatling.rb +4 -4
- data/lib/simple_perf/cli/{create.rb → create_jmeter.rb} +5 -5
- data/lib/simple_perf/cli/deploy_gatling.rb +6 -7
- data/lib/simple_perf/cli/{deploy.rb → deploy_jmeter.rb} +7 -8
- data/lib/simple_perf/cli/destroy.rb +4 -4
- data/lib/simple_perf/cli/results.rb +4 -4
- data/lib/simple_perf/cli/start_custom.rb +4 -4
- data/lib/simple_perf/cli/start_gatling.rb +4 -4
- data/lib/simple_perf/cli/start_jmeter.rb +4 -4
- data/lib/simple_perf/cli/status.rb +4 -4
- data/lib/simple_perf/cli/stop.rb +4 -4
- data/lib/simple_perf/cli/update.rb +6 -6
- data/lib/simple_perf/cli.rb +9 -9
- data/lib/simple_perf/version.rb +1 -1
- data/simple_perf.gemspec +1 -0
- metadata +6 -5
@@ -11,14 +11,15 @@ module SimplePerf
|
|
11
11
|
Creates CloudFormation stack for s3 bucket.
|
12
12
|
|
13
13
|
Usage:
|
14
|
-
simple_perf create_bucket -e ENVIRONMENT -
|
14
|
+
simple_perf create_bucket -e ENVIRONMENT -p PROJECT_NAME
|
15
|
+
|
15
16
|
EOS
|
16
17
|
opt :help, "Display Help"
|
17
18
|
opt :environment, "Set the target environment", :type => :string
|
18
|
-
opt :
|
19
|
+
opt :project, "Project name to manage", :type => :string
|
19
20
|
end
|
20
21
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
21
|
-
Trollop::die :
|
22
|
+
Trollop::die :project, "is required but not specified" unless opts[:project]
|
22
23
|
|
23
24
|
gem_root = File.expand_path '../..', __FILE__
|
24
25
|
|
@@ -26,14 +27,14 @@ EOS
|
|
26
27
|
|
27
28
|
command = 'simple_deploy create' +
|
28
29
|
' -e ' + opts[:environment] +
|
29
|
-
' -n ' + opts[:
|
30
|
+
' -n ' + 'simple-perf-' + opts[:project] + '-s3-' + config['region'] +
|
30
31
|
' -t '+ gem_root + '/cloud_formation_templates/s3_bucket.json'
|
31
32
|
|
32
33
|
`#{command}`
|
33
34
|
|
34
35
|
command = 'simple_deploy outputs' +
|
35
36
|
' -e ' + opts[:environment] +
|
36
|
-
' -n ' + opts[:
|
37
|
+
' -n ' + 'simple-perf-' + opts[:project] + '-s3-' + config['region']
|
37
38
|
|
38
39
|
(0..5).each do |i|
|
39
40
|
puts "Getting s3 bucket name..."
|
@@ -13,17 +13,17 @@ module SimplePerf
|
|
13
13
|
Creates CloudFormation stack for Gatling instances.
|
14
14
|
|
15
15
|
Usage:
|
16
|
-
simple_perf
|
16
|
+
simple_perf create_gatling -e ENVIRONMENT -p PROJECT_NAME -a AMI -i INSTANCE_TYPE -s S3_BUCKET
|
17
17
|
EOS
|
18
18
|
opt :help, "Display Help"
|
19
19
|
opt :environment, "Set the target environment", :type => :string
|
20
|
-
opt :
|
20
|
+
opt :project, "Project name to manage", :type => :string
|
21
21
|
opt :ami, "AWS ami", :type => :string
|
22
22
|
opt :instancetype, "AWS instance type", :type => :string
|
23
23
|
opt :s3bucket, "AWS s3 bucket", :type => :string
|
24
24
|
end
|
25
25
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
26
|
-
Trollop::die :
|
26
|
+
Trollop::die :project, "is required but not specified" unless opts[:project]
|
27
27
|
Trollop::die :ami, "is required but not specified" unless opts[:ami]
|
28
28
|
Trollop::die :instancetype, "is required but not specified" unless opts[:instancetype]
|
29
29
|
Trollop::die :s3bucket, "is required but not specified" unless opts[:s3bucket]
|
@@ -34,7 +34,7 @@ EOS
|
|
34
34
|
|
35
35
|
command = 'simple_deploy create' +
|
36
36
|
' -e ' + opts[:environment] +
|
37
|
-
' -n ' + opts[:
|
37
|
+
' -n ' + 'simple-perf-' + opts[:project] +
|
38
38
|
' -t '+ gem_root + '/cloud_formation_templates/instance_group_gatling.json' +
|
39
39
|
' -a Description="EC2 Gatling Instance"' +
|
40
40
|
' -a KeyName=' + config['aws_keypair'] +
|
@@ -2,7 +2,7 @@ require 'trollop'
|
|
2
2
|
|
3
3
|
module SimplePerf
|
4
4
|
module CLI
|
5
|
-
class
|
5
|
+
class CreateJmeter
|
6
6
|
include Shared
|
7
7
|
|
8
8
|
def execute
|
@@ -13,17 +13,17 @@ module SimplePerf
|
|
13
13
|
Creates CloudFormation stack for JMeter instances.
|
14
14
|
|
15
15
|
Usage:
|
16
|
-
simple_perf
|
16
|
+
simple_perf create_jmeter -e ENVIRONMENT -p PROJECT_NAME -a AMI -i INSTANCE_TYPE -s S3_BUCKET
|
17
17
|
EOS
|
18
18
|
opt :help, "Display Help"
|
19
19
|
opt :environment, "Set the target environment", :type => :string
|
20
|
-
opt :
|
20
|
+
opt :project, "Project name to manage", :type => :string
|
21
21
|
opt :ami, "AWS ami", :type => :string
|
22
22
|
opt :instancetype, "AWS instance type", :type => :string
|
23
23
|
opt :s3bucket, "AWS s3 bucket", :type => :string
|
24
24
|
end
|
25
25
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
26
|
-
Trollop::die :
|
26
|
+
Trollop::die :project, "is required but not specified" unless opts[:project]
|
27
27
|
Trollop::die :ami, "is required but not specified" unless opts[:ami]
|
28
28
|
Trollop::die :instancetype, "is required but not specified" unless opts[:instancetype]
|
29
29
|
Trollop::die :s3bucket, "is required but not specified" unless opts[:s3bucket]
|
@@ -34,7 +34,7 @@ EOS
|
|
34
34
|
|
35
35
|
command = 'simple_deploy create' +
|
36
36
|
' -e ' + opts[:environment] +
|
37
|
-
' -n ' + opts[:
|
37
|
+
' -n ' + 'simple-perf-' + opts[:project] +
|
38
38
|
' -t '+ gem_root + '/cloud_formation_templates/instance_group.json' +
|
39
39
|
' -a Description="EC2 JMeter Instance"' +
|
40
40
|
' -a KeyName=' + config['aws_keypair'] +
|
@@ -14,14 +14,14 @@ module SimplePerf
|
|
14
14
|
Deploys Gatling test assets (user-files directory) to EC2 Gatling instances.
|
15
15
|
|
16
16
|
Usage:
|
17
|
-
simple_perf deploy_gatling -e ENVIRONMENT -
|
17
|
+
simple_perf deploy_gatling -e ENVIRONMENT -p PROJECT_NAME
|
18
18
|
EOS
|
19
19
|
opt :help, "Display Help"
|
20
20
|
opt :environment, "Set the target environment", :type => :string
|
21
|
-
opt :
|
21
|
+
opt :project, "Stack name to manage", :type => :string
|
22
22
|
end
|
23
23
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
24
|
-
Trollop::die :
|
24
|
+
Trollop::die :project, "is required but not specified" unless opts[:project]
|
25
25
|
|
26
26
|
file_name = 'user-files.tar.gz'
|
27
27
|
|
@@ -36,10 +36,9 @@ EOS
|
|
36
36
|
:access_key_id => config['access_key'],
|
37
37
|
:secret_access_key => config['secret_key'])
|
38
38
|
|
39
|
-
#TODO - This is a bad idea...there could be multiple stacks with s3 in the name...fix later
|
40
39
|
command = 'simple_deploy list' +
|
41
40
|
' -e ' + opts[:environment] +
|
42
|
-
' | grep s3'
|
41
|
+
' | grep ' + opts[:project] + '-s3'
|
43
42
|
bucket_stack = `#{command}`
|
44
43
|
|
45
44
|
command = 'simple_deploy outputs' +
|
@@ -72,7 +71,7 @@ EOS
|
|
72
71
|
|
73
72
|
command = 'simple_deploy execute' +
|
74
73
|
' -e ' + opts[:environment] +
|
75
|
-
' -n ' + opts[:
|
74
|
+
' -n ' + 'simple-perf-' + opts[:project] +
|
76
75
|
' -c "~/sync_gatling_files.sh"' +
|
77
76
|
' -l debug'
|
78
77
|
|
@@ -80,7 +79,7 @@ EOS
|
|
80
79
|
|
81
80
|
command = 'simple_deploy execute' +
|
82
81
|
' -e ' + opts[:environment] +
|
83
|
-
' -n ' + opts[:
|
82
|
+
' -n ' + 'simple-perf-' + opts[:project] +
|
84
83
|
' -c "cd ~/simple_perf_test_files; tar xvfz "' + file_name +
|
85
84
|
' -l debug'
|
86
85
|
|
@@ -3,7 +3,7 @@ require 'aws-sdk'
|
|
3
3
|
|
4
4
|
module SimplePerf
|
5
5
|
module CLI
|
6
|
-
class
|
6
|
+
class DeployJmeter
|
7
7
|
include Shared
|
8
8
|
|
9
9
|
def execute
|
@@ -14,14 +14,14 @@ module SimplePerf
|
|
14
14
|
Deploys jmeter test assets (csv's and jmx) to EC2 jmeter instances.
|
15
15
|
|
16
16
|
Usage:
|
17
|
-
simple_perf deploy -e ENVIRONMENT -
|
17
|
+
simple_perf deploy -e ENVIRONMENT -p PROJECT_NAME
|
18
18
|
EOS
|
19
19
|
opt :help, "Display Help"
|
20
20
|
opt :environment, "Set the target environment", :type => :string
|
21
|
-
opt :
|
21
|
+
opt :project, "Project name to manage", :type => :string
|
22
22
|
end
|
23
23
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
24
|
-
Trollop::die :
|
24
|
+
Trollop::die :project, "is required but not specified" unless opts[:project]
|
25
25
|
|
26
26
|
file_name = 'test.zip'
|
27
27
|
|
@@ -36,10 +36,9 @@ EOS
|
|
36
36
|
:access_key_id => config['access_key'],
|
37
37
|
:secret_access_key => config['secret_key'])
|
38
38
|
|
39
|
-
#TODO - This is a bad idea...there could be multiple stacks with s3 in the name...fix later
|
40
39
|
command = 'simple_deploy list' +
|
41
40
|
' -e ' + opts[:environment] +
|
42
|
-
' | grep s3'
|
41
|
+
' | grep ' + opts[:project] + '-s3'
|
43
42
|
bucket_stack = `#{command}`
|
44
43
|
|
45
44
|
command = 'simple_deploy outputs' +
|
@@ -72,7 +71,7 @@ EOS
|
|
72
71
|
|
73
72
|
command = 'simple_deploy execute' +
|
74
73
|
' -e ' + opts[:environment] +
|
75
|
-
' -n ' + opts[:
|
74
|
+
' -n ' + 'simple-perf-' + opts[:project] +
|
76
75
|
' -c "~/sync_jmeter_files.sh"' +
|
77
76
|
' -l debug'
|
78
77
|
|
@@ -80,7 +79,7 @@ EOS
|
|
80
79
|
|
81
80
|
command = 'simple_deploy execute' +
|
82
81
|
' -e ' + opts[:environment] +
|
83
|
-
' -n ' + opts[:
|
82
|
+
' -n ' + 'simple-perf-' + opts[:project] +
|
84
83
|
' -c "cd ~/simple_perf_test_files; unzip -o "' + file_name +
|
85
84
|
' -l debug'
|
86
85
|
|
@@ -13,18 +13,18 @@ module SimplePerf
|
|
13
13
|
Destroys CloudFormation stack.
|
14
14
|
|
15
15
|
Usage:
|
16
|
-
simple_perf destroy -e ENVIRONMENT -
|
16
|
+
simple_perf destroy -e ENVIRONMENT -p PROJECT_NAME
|
17
17
|
EOS
|
18
18
|
opt :help, "Display Help"
|
19
19
|
opt :environment, "Set the target environment", :type => :string
|
20
|
-
opt :
|
20
|
+
opt :project, "Project name to manage", :type => :string
|
21
21
|
end
|
22
22
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
23
|
-
Trollop::die :
|
23
|
+
Trollop::die :project, "is required but not specified" unless opts[:project]
|
24
24
|
|
25
25
|
command = 'simple_deploy destroy' +
|
26
26
|
' -e ' + opts[:environment] +
|
27
|
-
' -n ' + opts[:
|
27
|
+
' -n ' + 'simple-perf-' + opts[:project]
|
28
28
|
|
29
29
|
Shared::pretty_print `#{command}`
|
30
30
|
end
|
@@ -13,14 +13,14 @@ module SimplePerf
|
|
13
13
|
Display JMeter log file results.
|
14
14
|
|
15
15
|
Usage:
|
16
|
-
simple_perf results -e ENVIRONMENT -
|
16
|
+
simple_perf results -e ENVIRONMENT -p PROJECT_NAME
|
17
17
|
EOS
|
18
18
|
opt :help, "Display Help"
|
19
19
|
opt :environment, "Set the target environment", :type => :string
|
20
|
-
opt :
|
20
|
+
opt :project, "Project name to manage", :type => :string
|
21
21
|
end
|
22
22
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
23
|
-
Trollop::die :
|
23
|
+
Trollop::die :project, "is required but not specified" unless opts[:project]
|
24
24
|
|
25
25
|
config = Config.new.environment opts[:environment]
|
26
26
|
|
@@ -31,7 +31,7 @@ EOS
|
|
31
31
|
|
32
32
|
command = 'simple_deploy execute' +
|
33
33
|
' -e ' + opts[:environment] +
|
34
|
-
' -n ' + opts[:
|
34
|
+
' -n ' + 'simple-perf-' + opts[:project] +
|
35
35
|
' -c ' + grep_command +
|
36
36
|
' -l debug'
|
37
37
|
|
@@ -13,14 +13,14 @@ module SimplePerf
|
|
13
13
|
Starts JMeter or Gatling with custom shell script.
|
14
14
|
|
15
15
|
Usage:
|
16
|
-
simple_perf start_custom -e ENVIRONMENT -
|
16
|
+
simple_perf start_custom -e ENVIRONMENT -p PROJECT_NAME
|
17
17
|
EOS
|
18
18
|
opt :help, "Display Help"
|
19
19
|
opt :environment, "Set the target environment", :type => :string
|
20
|
-
opt :
|
20
|
+
opt :project, "Project name to manage", :type => :string
|
21
21
|
end
|
22
22
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
23
|
-
Trollop::die :
|
23
|
+
Trollop::die :project, "is required but not specified" unless opts[:project]
|
24
24
|
|
25
25
|
config = Config.new.environment opts[:environment]
|
26
26
|
|
@@ -29,7 +29,7 @@ EOS
|
|
29
29
|
|
30
30
|
command = 'simple_deploy execute' +
|
31
31
|
' -e ' + opts[:environment] +
|
32
|
-
' -n ' + opts[:
|
32
|
+
' -n ' + 'simple-perf-' + opts[:project] +
|
33
33
|
' -c "cd ~/simple_perf_test_files; nohup ./start_custom.sh > start_custom.log &"' +
|
34
34
|
' -l debug'
|
35
35
|
|
@@ -13,15 +13,15 @@ module SimplePerf
|
|
13
13
|
Starts Gatling java processes.
|
14
14
|
|
15
15
|
Usage:
|
16
|
-
simple_perf start_gatling -e ENVIRONMENT -
|
16
|
+
simple_perf start_gatling -e ENVIRONMENT -p PROJECT_NAME -s SIMULATION_NAME
|
17
17
|
EOS
|
18
18
|
opt :help, "Display Help"
|
19
19
|
opt :environment, "Set the target environment", :type => :string
|
20
|
-
opt :
|
20
|
+
opt :project, "Project name to manage", :type => :string
|
21
21
|
opt :simulation, "Gatling User simulation file (e.g. sample.SampleUserModelSimulation)", :type => :string
|
22
22
|
end
|
23
23
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
24
|
-
Trollop::die :
|
24
|
+
Trollop::die :project, "is required but not specified" unless opts[:project]
|
25
25
|
Trollop::die :simulation, "is required but not specified" unless opts[:simulation]
|
26
26
|
|
27
27
|
config = Config.new.environment opts[:environment]
|
@@ -31,7 +31,7 @@ EOS
|
|
31
31
|
|
32
32
|
command = 'simple_deploy execute' +
|
33
33
|
' -e ' + opts[:environment] +
|
34
|
-
' -n ' + opts[:
|
34
|
+
' -n ' + 'simple-perf-' + opts[:project] +
|
35
35
|
' -c "cd ~/simple_perf_test_files; nohup ./gatling.sh ' + opts[:simulation] + ' < input > gatling.log &"' +
|
36
36
|
' -l debug'
|
37
37
|
|
@@ -13,15 +13,15 @@ module SimplePerf
|
|
13
13
|
Starts JMeter java processes.
|
14
14
|
|
15
15
|
Usage:
|
16
|
-
simple_perf start_jmeter -e ENVIRONMENT -
|
16
|
+
simple_perf start_jmeter -e ENVIRONMENT -p PROJECT_NAME -t JMETER_TEST_PLAN
|
17
17
|
EOS
|
18
18
|
opt :help, "Display Help"
|
19
19
|
opt :environment, "Set the target environment", :type => :string
|
20
|
-
opt :
|
20
|
+
opt :project, "Project name to manage", :type => :string
|
21
21
|
opt :testplan, "JMeter Test Plan (.jmx file)", :type => :string
|
22
22
|
end
|
23
23
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
24
|
-
Trollop::die :
|
24
|
+
Trollop::die :project, "is required but not specified" unless opts[:project]
|
25
25
|
Trollop::die :testplan, "is required but not specified" unless opts[:testplan]
|
26
26
|
|
27
27
|
config = Config.new.environment opts[:environment]
|
@@ -31,7 +31,7 @@ EOS
|
|
31
31
|
|
32
32
|
command = 'simple_deploy execute' +
|
33
33
|
' -e ' + opts[:environment] +
|
34
|
-
' -n ' + opts[:
|
34
|
+
' -n ' + 'simple-perf-' + opts[:project] +
|
35
35
|
' -c "cd ~/simple_perf_test_files; nohup jmeter -Dsun.net.inetaddr.ttl=60 -n -t ' + opts[:testplan] + ' </dev/null >/dev/null 2>&1 &"' +
|
36
36
|
' -l debug'
|
37
37
|
|
@@ -13,14 +13,14 @@ module SimplePerf
|
|
13
13
|
Display JMeter or Gatling army process status
|
14
14
|
|
15
15
|
Usage:
|
16
|
-
simple_perf status -e ENVIRONMENT -
|
16
|
+
simple_perf status -e ENVIRONMENT -p PROJECT_NAME
|
17
17
|
EOS
|
18
18
|
opt :help, "Display Help"
|
19
19
|
opt :environment, "Set the target environment", :type => :string
|
20
|
-
opt :
|
20
|
+
opt :project, "Project name to manage", :type => :string
|
21
21
|
end
|
22
22
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
23
|
-
Trollop::die :
|
23
|
+
Trollop::die :project, "is required but not specified" unless opts[:project]
|
24
24
|
|
25
25
|
config = Config.new.environment opts[:environment]
|
26
26
|
|
@@ -29,7 +29,7 @@ EOS
|
|
29
29
|
|
30
30
|
command = 'simple_deploy execute' +
|
31
31
|
' -e ' + opts[:environment] +
|
32
|
-
' -n ' + opts[:
|
32
|
+
' -n ' + 'simple-perf-' + opts[:project] +
|
33
33
|
' -c "ps -ef | grep java | grep -v grep || echo \"java process not found\""' +
|
34
34
|
' -l debug'
|
35
35
|
|
data/lib/simple_perf/cli/stop.rb
CHANGED
@@ -13,14 +13,14 @@ module SimplePerf
|
|
13
13
|
Stops the current test by killing JMeter or Gatling java processes.
|
14
14
|
|
15
15
|
Usage:
|
16
|
-
simple_perf stop -e ENVIRONMENT -
|
16
|
+
simple_perf stop -e ENVIRONMENT -p PROJECT_NAME
|
17
17
|
EOS
|
18
18
|
opt :help, "Display Help"
|
19
19
|
opt :environment, "Set the target environment", :type => :string
|
20
|
-
opt :
|
20
|
+
opt :project, "Project name to manage", :type => :string
|
21
21
|
end
|
22
22
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
23
|
-
Trollop::die :
|
23
|
+
Trollop::die :project, "is required but not specified" unless opts[:project]
|
24
24
|
|
25
25
|
config = Config.new.environment opts[:environment]
|
26
26
|
|
@@ -29,7 +29,7 @@ EOS
|
|
29
29
|
|
30
30
|
command = 'simple_deploy execute' +
|
31
31
|
' -e ' + opts[:environment] +
|
32
|
-
' -n ' + opts[:
|
32
|
+
' -n ' + 'simple-perf-' + opts[:project] +
|
33
33
|
' -c "killall java"' +
|
34
34
|
' -l debug'
|
35
35
|
|
@@ -10,23 +10,23 @@ module SimplePerf
|
|
10
10
|
version SimplePerf::VERSION
|
11
11
|
banner <<-EOS
|
12
12
|
|
13
|
-
Updates
|
13
|
+
Updates number of JMeter or Gatling instances.
|
14
14
|
|
15
15
|
Usage:
|
16
|
-
simple_perf update -e ENVIRONMENT -
|
16
|
+
simple_perf update -e ENVIRONMENT -p PROJECT_NAME -c COUNT
|
17
17
|
EOS
|
18
18
|
opt :help, "Display Help"
|
19
19
|
opt :environment, "Set the target environment", :type => :string
|
20
|
-
opt :
|
21
|
-
opt :count, "Number of
|
20
|
+
opt :project, "Project name to manage", :type => :string
|
21
|
+
opt :count, "Number of JMeter or Gatling instances", :type => :string
|
22
22
|
end
|
23
23
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
24
|
-
Trollop::die :
|
24
|
+
Trollop::die :project, "is required but not specified" unless opts[:project]
|
25
25
|
Trollop::die :count, "is required but not specified" unless opts[:count]
|
26
26
|
|
27
27
|
command = 'simple_deploy update' +
|
28
28
|
' -e ' + opts[:environment] +
|
29
|
-
' -n ' + opts[:
|
29
|
+
' -n ' + 'simple-perf-' + opts[:project] +
|
30
30
|
' -a MinimumInstances=' + opts[:count] +
|
31
31
|
' -a MaximumInstances=' + opts[:count]
|
32
32
|
|
data/lib/simple_perf/cli.rb
CHANGED
@@ -3,15 +3,15 @@ require 'trollop'
|
|
3
3
|
require 'simple_perf/cli/shared'
|
4
4
|
|
5
5
|
require 'simple_perf/cli/stop'
|
6
|
-
require 'simple_perf/cli/deploy'
|
7
|
-
require 'simple_perf/cli/create'
|
8
|
-
require 'simple_perf/cli/create_bucket'
|
9
6
|
require 'simple_perf/cli/destroy'
|
10
7
|
require 'simple_perf/cli/status'
|
11
8
|
require 'simple_perf/cli/results'
|
12
9
|
require 'simple_perf/cli/update'
|
13
10
|
require 'simple_perf/cli/chaos'
|
11
|
+
require 'simple_perf/cli/create_bucket'
|
12
|
+
require 'simple_perf/cli/create_jmeter'
|
14
13
|
require 'simple_perf/cli/create_gatling'
|
14
|
+
require 'simple_perf/cli/deploy_jmeter'
|
15
15
|
require 'simple_perf/cli/deploy_gatling'
|
16
16
|
require 'simple_perf/cli/start_jmeter'
|
17
17
|
require 'simple_perf/cli/start_gatling'
|
@@ -31,12 +31,12 @@ module SimplePerf
|
|
31
31
|
CLI::StartCustom.new.execute
|
32
32
|
when 'stop'
|
33
33
|
CLI::Stop.new.execute
|
34
|
-
when '
|
35
|
-
CLI::
|
34
|
+
when 'deploy_jmeter'
|
35
|
+
CLI::DeployJmeter.new.execute
|
36
36
|
when 'deploy_gatling'
|
37
37
|
CLI::DeployGatling.new.execute
|
38
|
-
when '
|
39
|
-
CLI::
|
38
|
+
when 'create_jmeter'
|
39
|
+
CLI::CreateJmeter.new.execute
|
40
40
|
when 'create_gatling'
|
41
41
|
CLI::CreateGatling.new.execute
|
42
42
|
when 'create_bucket'
|
@@ -52,13 +52,13 @@ module SimplePerf
|
|
52
52
|
when 'chaos'
|
53
53
|
CLI::Chaos.new.execute
|
54
54
|
when '-h'
|
55
|
-
puts "simple_perf [start_jmeter|start_gatling|start_custom|stop|
|
55
|
+
puts "simple_perf [start_jmeter|start_gatling|start_custom|stop|deploy_jmeter|deploy_gatling|create_jmeter|create_gatling|create_bucket|destroy|status|results|update|chaos] [options]"
|
56
56
|
puts "Append -h for help on specific subcommand."
|
57
57
|
when '-v'
|
58
58
|
puts SimplePerf::VERSION
|
59
59
|
else
|
60
60
|
puts "Unknown command: '#{cmd}'."
|
61
|
-
puts "simple_perf [start_jmeter|start_gatling|start_custom|stop|
|
61
|
+
puts "simple_perf [start_jmeter|start_gatling|start_custom|stop|deploy_jmeter|deploy_gatling|create_jmeter|create_gatling|create_bucket|destroy|status|results|update|chaos] [options]"
|
62
62
|
puts "Append -h for help on specific subcommand."
|
63
63
|
exit 1
|
64
64
|
end
|
data/lib/simple_perf/version.rb
CHANGED
data/simple_perf.gemspec
CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.homepage = "https://github.com/intuit/simple_perf"
|
11
11
|
s.summary = %q{I help with performance testing}
|
12
12
|
s.description = %q{I am designed to control a JMeter or Gatling army of AWS EC2 instances}
|
13
|
+
s.license = 'MIT'
|
13
14
|
|
14
15
|
s.rubyforge_project = "simple_perf"
|
15
16
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_perf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -111,11 +111,11 @@ files:
|
|
111
111
|
- lib/simple_perf.rb
|
112
112
|
- lib/simple_perf/cli.rb
|
113
113
|
- lib/simple_perf/cli/chaos.rb
|
114
|
-
- lib/simple_perf/cli/create.rb
|
115
114
|
- lib/simple_perf/cli/create_bucket.rb
|
116
115
|
- lib/simple_perf/cli/create_gatling.rb
|
117
|
-
- lib/simple_perf/cli/
|
116
|
+
- lib/simple_perf/cli/create_jmeter.rb
|
118
117
|
- lib/simple_perf/cli/deploy_gatling.rb
|
118
|
+
- lib/simple_perf/cli/deploy_jmeter.rb
|
119
119
|
- lib/simple_perf/cli/destroy.rb
|
120
120
|
- lib/simple_perf/cli/results.rb
|
121
121
|
- lib/simple_perf/cli/shared.rb
|
@@ -133,7 +133,8 @@ files:
|
|
133
133
|
- simple_perf.gemspec
|
134
134
|
- spec/spec_helper.rb
|
135
135
|
homepage: https://github.com/intuit/simple_perf
|
136
|
-
licenses:
|
136
|
+
licenses:
|
137
|
+
- MIT
|
137
138
|
post_install_message:
|
138
139
|
rdoc_options: []
|
139
140
|
require_paths:
|