route53 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/lib/route53.rb +3 -2
- data/lib/route53/cli.rb +10 -4
- data/lib/route53/version.rb +1 -1
- metadata +3 -3
data/README.markdown
CHANGED
data/lib/route53.rb
CHANGED
@@ -305,7 +305,7 @@ module Route53
|
|
305
305
|
@name += "."
|
306
306
|
end
|
307
307
|
@type = type
|
308
|
-
@ttl = ttl
|
308
|
+
@ttl = ttl.upcase
|
309
309
|
@values = values
|
310
310
|
@zone = zone
|
311
311
|
end
|
@@ -373,6 +373,7 @@ end
|
|
373
373
|
"Other" => "It looks like you've run into an unhandled error. Please send a detailed bug report with the entire input and output from the program to support@50projects.com or to https://github.com/pcorliss/ruby_route_53/issues and we'll do out best to help you.",
|
374
374
|
"SignatureDoesNotMatch" => "It looks like your secret key is incorrect or no longer valid. Please check your amazon account information for the proper key.",
|
375
375
|
"HostedZoneNotEmpty" => "You'll need to first delete the contents of this zone. You can do so using the '--remove' option as part of the command line interface.",
|
376
|
-
"InvalidChangeBatch" => "You may have tried to delete a NS or SOA record. This error is safe to ignore if you're just trying to delete all records as part of a zone prior to deleting the zone. Otherwise please file a bug by sending a detailed bug report with the entire input and output from the program to support@50projects.com or to https://github.com/pcorliss/ruby_route_53/issues and we'll do out best to help you."
|
376
|
+
"InvalidChangeBatch" => "You may have tried to delete a NS or SOA record. This error is safe to ignore if you're just trying to delete all records as part of a zone prior to deleting the zone. Otherwise please file a bug by sending a detailed bug report with the entire input and output from the program to support@50projects.com or to https://github.com/pcorliss/ruby_route_53/issues and we'll do out best to help you.",
|
377
|
+
"ValidationError" => "Check over your input again to make sure the record to be created is valid. The error message should give you some hints on what went wrong. If you're still having problems please file a bug by sending a detailed bug report with the entire input and output from the program to support@50projects.com or to https://github.com/pcorliss/ruby_route_53/issues and we'll do out best to help you."}
|
377
378
|
|
378
379
|
|
data/lib/route53/cli.rb
CHANGED
@@ -20,6 +20,8 @@ module Route53
|
|
20
20
|
@options.quiet = false
|
21
21
|
end
|
22
22
|
|
23
|
+
#Skeleton obtained from http://blog.toddwerth.com/entries/show/5 and modified
|
24
|
+
|
23
25
|
# Parse options, check arguments, then process the command
|
24
26
|
def run
|
25
27
|
if parsed_options? && arguments_valid?
|
@@ -105,9 +107,13 @@ module Route53
|
|
105
107
|
end
|
106
108
|
|
107
109
|
def arguments_valid?
|
108
|
-
|
109
|
-
|
110
|
-
|
110
|
+
if @arguments.length <= 1
|
111
|
+
@options.zone = @arguments.pop if @options.zone.nil?
|
112
|
+
return true
|
113
|
+
else
|
114
|
+
$stderr.puts "Received extra arguments. that couldn't be handled:#{@arguments}"
|
115
|
+
return false
|
116
|
+
end
|
111
117
|
end
|
112
118
|
|
113
119
|
# Setup the arguments
|
@@ -122,7 +128,7 @@ module Route53
|
|
122
128
|
remove_record
|
123
129
|
elsif @options.change_record
|
124
130
|
change_record
|
125
|
-
|
131
|
+
else
|
126
132
|
list
|
127
133
|
end
|
128
134
|
end
|
data/lib/route53/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 5
|
9
|
+
version: 0.1.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Philip Corliss
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-12 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|