simple_perf 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple_perf/cli/create_gatling.rb +5 -1
- data/lib/simple_perf/cli/create_jmeter.rb +7 -2
- data/lib/simple_perf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3416231ce86a5a861ba2f433bc55a9dc46d80286
|
4
|
+
data.tar.gz: 1acca8791d2c47dd68ac498469e10dcd26f1afa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f484218d21b3c52c5ce30563d15814b4c6c1f34fba8c82419d4f36aef511f46a0469ba23479ecb14ab158bb620498eeb91b3b2029b3f569605b65ef6019e5189
|
7
|
+
data.tar.gz: 946ebc3649a58f0c2876c3fc4489b2b261c63624cb1da8242795d21e4b2bc2d95208f670e97b810f4f18f0e4995132564bce72afde1b3a0ecb7d219a073d2508
|
@@ -13,7 +13,7 @@ module SimplePerf
|
|
13
13
|
Creates CloudFormation stack for Gatling instances.
|
14
14
|
|
15
15
|
Usage:
|
16
|
-
simple_perf create_gatling -e ENVIRONMENT -p PROJECT_NAME -a AMI -i INSTANCE_TYPE -s S3_BUCKET
|
16
|
+
simple_perf create_gatling -e ENVIRONMENT -p PROJECT_NAME -a AMI -i INSTANCE_TYPE -s S3_BUCKET -c COUNT
|
17
17
|
EOS
|
18
18
|
opt :help, "Display Help"
|
19
19
|
opt :environment, "Set the target environment", :type => :string
|
@@ -21,12 +21,14 @@ EOS
|
|
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
|
+
opt :count, "Number of Gatling instances", :type => :string
|
24
25
|
end
|
25
26
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
26
27
|
Trollop::die :project, "is required but not specified" unless opts[:project]
|
27
28
|
Trollop::die :ami, "is required but not specified" unless opts[:ami]
|
28
29
|
Trollop::die :instancetype, "is required but not specified" unless opts[:instancetype]
|
29
30
|
Trollop::die :s3bucket, "is required but not specified" unless opts[:s3bucket]
|
31
|
+
Trollop::die :count, "is required but not specified" unless opts[:count]
|
30
32
|
|
31
33
|
gem_root = File.expand_path '../..', __FILE__
|
32
34
|
|
@@ -41,6 +43,8 @@ EOS
|
|
41
43
|
' -a AmiId=' + opts[:ami] +
|
42
44
|
' -a S3BucketName=' + opts[:s3bucket] +
|
43
45
|
' -a InstanceType=' + opts[:instancetype] +
|
46
|
+
' -a MinimumInstances=' + opts[:count] +
|
47
|
+
' -a MaximumInstances=' + opts[:count] +
|
44
48
|
' -a Abort=no'
|
45
49
|
|
46
50
|
Shared::pretty_print `#{command}`
|
@@ -13,7 +13,7 @@ module SimplePerf
|
|
13
13
|
Creates CloudFormation stack for JMeter instances.
|
14
14
|
|
15
15
|
Usage:
|
16
|
-
simple_perf create_jmeter -e ENVIRONMENT -p PROJECT_NAME -a AMI -i INSTANCE_TYPE -s S3_BUCKET
|
16
|
+
simple_perf create_jmeter -e ENVIRONMENT -p PROJECT_NAME -a AMI -i INSTANCE_TYPE -s S3_BUCKET -c COUNT
|
17
17
|
EOS
|
18
18
|
opt :help, "Display Help"
|
19
19
|
opt :environment, "Set the target environment", :type => :string
|
@@ -21,12 +21,14 @@ EOS
|
|
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
|
+
opt :count, "Number of JMeter instances", :type => :string
|
24
25
|
end
|
25
26
|
Trollop::die :environment, "is required but not specified" unless opts[:environment]
|
26
27
|
Trollop::die :project, "is required but not specified" unless opts[:project]
|
27
28
|
Trollop::die :ami, "is required but not specified" unless opts[:ami]
|
28
29
|
Trollop::die :instancetype, "is required but not specified" unless opts[:instancetype]
|
29
30
|
Trollop::die :s3bucket, "is required but not specified" unless opts[:s3bucket]
|
31
|
+
Trollop::die :count, "is required but not specified" unless opts[:count]
|
30
32
|
|
31
33
|
gem_root = File.expand_path '../..', __FILE__
|
32
34
|
|
@@ -40,7 +42,10 @@ EOS
|
|
40
42
|
' -a KeyName=' + config['aws_keypair'] +
|
41
43
|
' -a AmiId=' + opts[:ami] +
|
42
44
|
' -a S3BucketName=' + opts[:s3bucket] +
|
43
|
-
' -a InstanceType=' + opts[:instancetype]
|
45
|
+
' -a InstanceType=' + opts[:instancetype] +
|
46
|
+
' -a MinimumInstances=' + opts[:count] +
|
47
|
+
' -a MaximumInstances=' + opts[:count] +
|
48
|
+
' -a Abort=no'
|
44
49
|
|
45
50
|
Shared::pretty_print `#{command}`
|
46
51
|
end
|
data/lib/simple_perf/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Armitage
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|