shards 1.0.8 → 1.0.9

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: 50aead251a293111345135338260e89d3386b966
4
- data.tar.gz: 0af0f4e5c964e02329c05900c2b16699b1991c80
3
+ metadata.gz: feb2bd1162d3ba58dc2a675991d7a3d0e4f88c1e
4
+ data.tar.gz: a912d54338080ba8852e13006748cfd7e32ca0e0
5
5
  SHA512:
6
- metadata.gz: 6916d9e9ba9d900b65ee7c1ceccc45ce838e8c8c6b18e450da3f44c0a408bbfe96cbdd14179648b4f8e9918216f4b2241182b3a5a997cd812ef71c7b77dd092a
7
- data.tar.gz: 241fa42e623bb4d7e6bff26c59fcd8e917475e35bcd0643216fcb87840e37a38141e7e23d3a2c14bb79a983bea57250c5e68c0bb2b59e8298bef63a5dce82cb5
6
+ metadata.gz: 579ec4061c0cc4521f80b36aeefd11575c6b5337703fe8a205f5774a35786cf0b1878d05ee3eaba21911b6f946e8857c63cb19a4a8790f9991d13fb0d6417a16
7
+ data.tar.gz: 1935b2ea02e5a4b5726c7d100865d398b676f4843ea5e2d0b78643f4c7fc202d8c4fea5c6332915f31714e7693a99c7fbd8ffca54a68769c208d8ae40d3f353c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shards (1.0.8)
4
+ shards (1.0.9)
5
5
  aws-sdk-route53 (~> 1.9)
6
6
  dotenv (~> 2.4)
7
7
  git (~> 1.4)
@@ -80,6 +80,21 @@ module Shards
80
80
 
81
81
  end
82
82
 
83
+ desc "add_dns_record LOCATION STAGE DOMAIN", "Add dns record if dns record is available for a domain"
84
+
85
+ def add_dns_record(location, stage, domain)
86
+
87
+ s = get_stage location, stage
88
+ s.shard.add_domain domain
89
+ dns=s.shard.dns
90
+
91
+ if dns.exist?
92
+ puts "There is already a record for the host %s " % dns.host
93
+ else
94
+ dns.set dryrun: false
95
+ end
96
+
97
+ end
83
98
 
84
99
  desc "sites LOCATION STAGE", "Site list by LOCATION and STAGE"
85
100
 
@@ -1,3 +1,3 @@
1
1
  module Shards
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shards
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego PL