cloudstrap 0.35.0.pre → 0.35.5.pre
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 +4 -4
- data/bin/cloudstrap-dns +8 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b42cd992a87bb778c14d5f0ede2e693ddfb3cac
|
|
4
|
+
data.tar.gz: 504392acbb20d04031c4127cddd84d4597b5fd07
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b52399bfb637ef975193a78af2886571eed2ee9e1db7160d28bd198342e95c7b9f56b4686d366127dfc52d563c99c5e49b251d1ba3fb89f54a6d2b88a481626
|
|
7
|
+
data.tar.gz: 86d95a3a59501086f903ba8281df88132ffefb0ad73064bb2d1dd1e40ecba2947375a824578385931407ee4e7bf7257a042ab64b3f5b75cad7241ece3da6040a
|
data/bin/cloudstrap-dns
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
|
|
3
3
|
require 'burdened-acrobat'
|
|
4
|
+
require 'moneta'
|
|
4
5
|
require 'path53'
|
|
5
6
|
require 'pastel'
|
|
6
7
|
|
|
@@ -23,10 +24,14 @@ EOS
|
|
|
23
24
|
route53 = Cloudstrap::Amazon::Route53.new
|
|
24
25
|
config = Cloudstrap::Config.new
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
VPC = ENV.fetch('CLOUDSTRAP_VPC_ID') { ARGV.last }
|
|
27
|
+
abort "Cache not found! #{$PROGRAM_NAME} should be run *after* cloudstrap." unless Dir.exist? config.cache_path
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
cache = Moneta.new :File, dir: config.cache_path
|
|
30
|
+
|
|
31
|
+
DOMAIN = ENV.fetch('CLOUDSTRAP_DOMAIN') { config.domain_name }
|
|
32
|
+
VPC = ENV.fetch('CLOUDSTRAP_VPC_ID') { cache.fetch :vpc_id }
|
|
33
|
+
|
|
34
|
+
abort "VPC ID missing from cache. Have you run cloudstrap yet?" if VPC.nil?
|
|
30
35
|
|
|
31
36
|
ZONE = route53.zone(DOMAIN)
|
|
32
37
|
|