shards 2.2.5 → 2.3.0

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: 57cab79fbf52c8fefe461dcc4e2c59521d325604
4
- data.tar.gz: a6788955d900505ae52e502912288b28d77ce394
3
+ metadata.gz: df299697ef4c6e8ee71fa900b41f506a7020805a
4
+ data.tar.gz: 54a3dba8bd382c838728e311dbfa1d2db35fad23
5
5
  SHA512:
6
- metadata.gz: e74f777587d0ca6610485e18b8c261c7248adab3d9351c2ad48a7ef32bacb275a82d2eb68687fd8cdb481f833e6cb673df8d57aa60fa60a51ac4a6dae2c1a7cd
7
- data.tar.gz: 8cf635d1014b94d816079bab1aa50ccb5de10d5ced21d8670827a1d75a223c6b4a77c5bc93324a007555c5f3f9d3bebb81b4ef9c9bf1e295d38076a807ecdee8
6
+ metadata.gz: 3a7abf67de2873c97eee6220365322baac87e140e5e655508a74221f5e187404e1c7c20d6a73498a2bc1645a22b5bf8be8e51667f3f3ec1485a6af56d82219d6
7
+ data.tar.gz: 4a0b06e9a3bdee52917b3a870df164c76c99c2eebbef6c4e4f6de87c721bb52a8198df8d3628c26a9f65ff0d73380e7e099c93bf80aa2f901dbe1f8180719ca3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shards (2.2.5)
4
+ shards (2.3.0)
5
5
  aws-sdk-ec2 (~> 1.48)
6
6
  aws-sdk-elasticloadbalancing (~> 1.5)
7
7
  aws-sdk-elasticloadbalancingv2 (~> 1.14)
data/lib/shards/client.rb CHANGED
@@ -47,13 +47,6 @@ module Shards
47
47
 
48
48
  end
49
49
 
50
- desc 'terminal', 'Run interactive shards creation tool in the terminal'
51
-
52
- def terminal
53
- t=Shards::Workflow::Terminal.new config
54
- t.start
55
- end
56
-
57
50
  desc 'locations', 'Locations list'
58
51
 
59
52
  def locations
@@ -113,7 +106,7 @@ module Shards
113
106
  end
114
107
 
115
108
 
116
- desc "dns LOCATION STAGE DOMAIN", "Check if dns record is available for a domain"
109
+ desc "dns LOCATION STAGE DOMAIN", "Check if dns record is available for a domain (set domain without suffix and prefix)"
117
110
 
118
111
  def dns(location, stage, domain)
119
112
 
@@ -123,7 +116,7 @@ module Shards
123
116
 
124
117
  end
125
118
 
126
- desc "subdomain_dns LOCATION STAGE SUBDOMAIN", "Check if dns record is available for a subdomain"
119
+ desc "subdomain_dns LOCATION STAGE SUBDOMAIN", "Check if dns record is available for a subdomain final name, with prefix and suffix"
127
120
 
128
121
  def subdomain_dns(location, stage, subdomain)
129
122
 
@@ -1,3 +1,3 @@
1
1
  module Shards
2
- VERSION = "2.2.5"
2
+ VERSION = "2.3.0"
3
3
  end
@@ -28,10 +28,10 @@ module Shards
28
28
  end
29
29
 
30
30
  def dns_upsert
31
- stage.add_domain domain, dryrun: true
32
- stage.shard.dns.set dryrun: false
33
- raise_wrong_text host unless stage.shard.dns.exist?
34
- puts step['message'] % host
31
+ dns=Shards::Dns.new stage: stage, domain: domain
32
+ dns.set dryrun: false
33
+ raise_wrong_text dns.host unless dns.exist?
34
+ puts step['message'] % dns.host
35
35
  end
36
36
 
37
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shards
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego PL
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-01 00:00:00.000000000 Z
11
+ date: 2018-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler