ish_models 3.1.0.21 → 3.1.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/wco_hosting/appliance.rb +3 -1
- data/app/models/wco_hosting/serverhost.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c16d37166d30d6e36729b5c418e0d9ac02fa38741488d461368c8596e2569a5
|
4
|
+
data.tar.gz: 41f4d1c62cdcd0c1652739b52ef5ec18c409036bbd4dc89b051f5c8713798120
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 289baeb1ff039cbf8e9afb7a147313b9409739c0017380c7c8b576d12c975680216d3a5cfa3677a62b2315ed529400771f4e08b3ef86b7a3f308fc286965bd98
|
7
|
+
data.tar.gz: 6725988d353958068af1e0c096d9ff3df3d2844968679e63bbe9aedcd0c46c4576ff74d7e6bba9a53dd627bfa78c2307528f299a3793e61215ebe631512a3f35
|
@@ -19,6 +19,9 @@ class WcoHosting::Appliance
|
|
19
19
|
def host
|
20
20
|
"#{subdomain}.#{domain}"
|
21
21
|
end
|
22
|
+
def route53_zone
|
23
|
+
WcoHosting::Domain.find_by( name: domain ).route53_zone
|
24
|
+
end
|
22
25
|
|
23
26
|
belongs_to :appliance_tmpl, class_name: 'WcoHosting::ApplianceTmpl'
|
24
27
|
def tmpl
|
@@ -30,7 +33,6 @@ class WcoHosting::Appliance
|
|
30
33
|
|
31
34
|
belongs_to :serverhost, class_name: 'WcoHosting::Serverhost'
|
32
35
|
|
33
|
-
# field :ip
|
34
36
|
field :port
|
35
37
|
|
36
38
|
STATE_PENDING = 'state-pending'
|
@@ -51,7 +51,8 @@ class WcoHosting::Serverhost
|
|
51
51
|
|
52
52
|
cmd = "aws route53 change-resource-record-sets \
|
53
53
|
--hosted-zone-id #{ app.route53_zone } \
|
54
|
-
--change-batch file://#{ file.path }
|
54
|
+
--change-batch file://#{ file.path } \
|
55
|
+
--profile route53 "
|
55
56
|
do_exec( cmd )
|
56
57
|
end
|
57
58
|
|