rdstune 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rdstune +17 -1
  3. data/lib/version.rb +1 -0
  4. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 258f4d37f2e17d5c43f40f4821afd2eeb9027bee
4
- data.tar.gz: c43f4f514db4d23d1481b35dbef2c05f42fde67b
3
+ metadata.gz: 6b6907da55ebee640837a461a4b106930f57e9f2
4
+ data.tar.gz: b19d65495acce4a09e58d959e5bc66f68573183e
5
5
  SHA512:
6
- metadata.gz: 070fdab9b7f8abf80b475e6a9537e3b8e3c0000eeefd6bdc3b5f0a25a2a91225e920b6f12d05d4f2615bb3a6351f98952e565cba09c729e57a6c3c6b92b349d8
7
- data.tar.gz: c01e0ccff776ad32399685cf25226e4c009080f5740e440da6b5025a6aa027a891cbd1f1870c80017b3ed55ed28e280471b597f8be9ffa626e0a34dd0c062520
6
+ metadata.gz: c371c9118e39460fec13c3ff00cc34037366837bf321eba2315c753423f868fb38c583fee61748d73e9cf0686354e15dc73f35a08554fe09c0a8b88b0ee81cc7
7
+ data.tar.gz: e4c1808871e1393cd86b6731d072812df32424daba39df5e2d17cffc25ee8304d9336fa9a2bc359f7c8491af9c298f2c897c2461350b87ac819b37cfa8340b86
data/bin/rdstune CHANGED
@@ -1,15 +1,31 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'rdstune'
4
3
  require 'trollop'
4
+ require_relative '../lib/rdstune'
5
+ require_relative '../lib/version'
5
6
 
6
7
  p = Trollop::Parser.new do
8
+ version "rdstune version: #{VERSION}"
9
+ banner <<-EOS
10
+
11
+ This gem creates a Parameter Group with sane defaults for your PostgreSQL RDS instances
12
+
13
+ Make sure you set the following environment variables
14
+ (or their ~/.aws/credentials equivilant)
15
+
16
+ export AWS_ACCESS_KEY="AWS_ACCESS_KEY"
17
+ export AWS_SECRET_KEY="AWS_SECRET_KEY"
18
+ export AWS_REGION='REGION' # ex: us-west-2
19
+
20
+ Options:
21
+ EOS
7
22
  opt :type, "Type of Database Server (Web/DW/Mixed/Desktop)", :type => :string, :default => 'web'
8
23
  opt :memory, "Amount of Memory on the Server (GiB)", :type => :float
9
24
  opt :connections, "Specify the Target Max Connections", :type => :integer
10
25
  opt :oversubscribe, "Oversubscribe the number of connections", :type => :integer
11
26
  opt :name, "Name of your RDS Parameter Group", :type => :string
12
27
  opt :family, "Database Family (Postgres version)", :type => :string, :default => 'postgres9.3'
28
+ opt :version, "Show the current version of rdstune"
13
29
  end
14
30
 
15
31
  opts = Trollop::with_standard_exception_handling p do
data/lib/version.rb ADDED
@@ -0,0 +1 @@
1
+ VERSION = "0.7.0"
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: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Kerr
@@ -62,6 +62,7 @@ files:
62
62
  - bin/rdstune
63
63
  - contributors.txt
64
64
  - lib/rdstune.rb
65
+ - lib/version.rb
65
66
  - license.txt
66
67
  homepage: https://bitbucket.org/davidkerr/rdstune
67
68
  licenses:
@@ -83,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
84
  version: '0'
84
85
  requirements: []
85
86
  rubyforge_project:
86
- rubygems_version: 2.4.1
87
+ rubygems_version: 2.4.5
87
88
  signing_key:
88
89
  specification_version: 4
89
90
  summary: Creates Tuned RDS Parameter Group for Postgres