simple_perf 0.0.17 → 0.0.18

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c11151da123300981ce70f315f209259801c486
4
- data.tar.gz: ba7c88219ccde9a00f42ba131f9746e00d7e3cf1
3
+ metadata.gz: 3416231ce86a5a861ba2f433bc55a9dc46d80286
4
+ data.tar.gz: 1acca8791d2c47dd68ac498469e10dcd26f1afa5
5
5
  SHA512:
6
- metadata.gz: 1764256ad0c724a06298e98d43e1a4111fadeaf3aeb252e00c614a08eba5c126a0d7dd4547cc0bd8ff2bd144a9bc59674ae8cb2b85bb149f43e339d3f3455ef7
7
- data.tar.gz: 3a559af7c2fff00a0a1cc9c02e778aabd81e51eea301c746a3160afd5e2cbf7aa6dd580352adbac8482e2e3866d65b58e39e03dfb7721403914b5b79f12bd243
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
@@ -1,3 +1,3 @@
1
1
  module SimplePerf
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
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.17
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-22 00:00:00.000000000 Z
11
+ date: 2014-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake