rdstune 2.0.1 → 2.0.2

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: 2ac11bb822eb833691837dde44033a06ed68e8cd
4
- data.tar.gz: da661b2ba83116d93c866081678bc1f23e53c161
3
+ metadata.gz: fd7cf6dae5849697f21e3ff47a564d19a4f69be0
4
+ data.tar.gz: a619e0a25f5121daf27f359a8c45022e58390bbe
5
5
  SHA512:
6
- metadata.gz: 5f4b503d14c8041a1a6f9be33f903a87c03ba4ccd1fae8aafd0fdf09ec1f86362f1636f9d14980a3ad8f1eb663c8175a182227369b846136950d1ab166d245ee
7
- data.tar.gz: 1657ab25b1ea3c35511fb964810a4f54805cd388f08fd09019f8fa7ce1c71386bec6ed4a0d3a400ede77cc5718460eb3b6a5163d773d3f6051c19b9fca6cdb9c
6
+ metadata.gz: 457a516eb59e86a840cfa2fcfe47012611fbd39f3f9ebdd03e79503087113954cf17fef72186c4f7c7dd72c707b083fde2801d3a6f414920095a977da37fed52
7
+ data.tar.gz: 881dd372c3df4c175ebf612b36eda4652bda37d30ff2ca9d96015e855ca85cfb842ebcbb791afb7a2b21219a61dd5918847b8caac6b665ec9ee8130ccda48858
data/bin/rdstune CHANGED
@@ -28,7 +28,7 @@ end
28
28
 
29
29
  opts = Trollop::with_standard_exception_handling p do
30
30
  o = p.parse ARGV
31
- if (o[:memory] == nil or o[:instance_type] == nil) and (o[:connections] == nil)
31
+ if (o[:memory] == nil or o[:instance_type] == nil) and (o[:type] == nil or o[:connections] == nil)
32
32
  raise Trollop::HelpNeeded
33
33
  end
34
34
  o
data/lib/ec2info.rb CHANGED
@@ -5,7 +5,7 @@ module RDSTUNE
5
5
  class Ec2Info
6
6
  def initialize(instance_type)
7
7
  @instance_type = instance_type
8
- @ec2info = JSON.parse(Net::HTTP.get(URI('http://www.ec2instances.info/instances.json')))
8
+ @ec2info = JSON.parse(Net::HTTP.get(URI('http://www.ec2instances.info/rds/instances.json')))
9
9
  end
10
10
 
11
11
  def show()
@@ -14,7 +14,7 @@ module RDSTUNE
14
14
 
15
15
  def get_memory()
16
16
  m = @ec2info.select {|instances| instances['instance_type'] == @instance_type}
17
- m.first["memory"]
17
+ m.first["memory"].to_f
18
18
  end
19
19
  end
20
20
  end
data/lib/rdstune.rb CHANGED
@@ -19,7 +19,6 @@ module RDSTUNE
19
19
  else
20
20
  @memory = memory
21
21
  end
22
-
23
22
  @type = type
24
23
  @options = options
25
24
  super(@type, @memory, @options)
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RDSTUNE
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdstune
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Kerr