ish_models 3.1.0.17 → 3.1.0.19
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e5a104c643900d87bcef9c2371677fe36129208bb2e8a300ff1ff568479a146
|
4
|
+
data.tar.gz: 06a5bc4a629a76ff9511d15be1ec48fb95a8c6c153631aa7ea5a86dba2917313
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d595a1c221423ddf6028c30c85e1e3766289667a97614d730808b124275a798ab482280b8c4f09717b98a4889cd8d9de3a9fd0debf2056d67160bba56a74f10
|
7
|
+
data.tar.gz: f3f31c844e571e06dccd9fa7e567ce5c3c275f64150fc3f5a873ae0b4322190e656a4c85ed6baac0e83cfa72a60c1806e4a9116077952e48933f9d272e4ae140
|
@@ -34,28 +34,28 @@ class WcoHosting::Serverhost
|
|
34
34
|
add_docker_service( app )
|
35
35
|
add_nginx_site( app )
|
36
36
|
# load_database( app )
|
37
|
+
create_subdomain( app )
|
37
38
|
|
38
|
-
|
39
|
-
|
40
|
-
##
|
41
|
-
# ac = ActionController::Base.new
|
42
|
-
# ac.instance_variable_set( :@app, app )
|
43
|
-
# rendered_str = ac.render_to_string("wco_hosting/scripts/create_subdomain.json")
|
44
|
-
# # puts '+++ add_subdomain rendered_str:'; print rendered_str
|
39
|
+
update({ next_port: app.serverhost.next_port + 1 })
|
40
|
+
end
|
45
41
|
|
46
|
-
|
47
|
-
|
48
|
-
|
42
|
+
def create_subdomain app
|
43
|
+
ac = ActionController::Base.new
|
44
|
+
ac.instance_variable_set( :@app, app )
|
45
|
+
rendered_str = ac.render_to_string("wco_hosting/scripts/create_subdomain.json")
|
46
|
+
# puts '+++ create_subdomain rendered_str:'; print rendered_str
|
49
47
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
# puts! cmd, 'cmd'
|
54
|
-
# `#{cmd}`
|
48
|
+
file = Tempfile.new('prefix')
|
49
|
+
file.write rendered_str
|
50
|
+
file.close
|
55
51
|
|
56
|
-
|
52
|
+
cmd = "aws route53 change-resource-record-sets \
|
53
|
+
--hosted-zone-id <%= app.route53_zone %> \
|
54
|
+
--change-batch file://<%= file.path %> "
|
55
|
+
do_exec( cmd )
|
57
56
|
end
|
58
57
|
|
58
|
+
|
59
59
|
def add_nginx_site app
|
60
60
|
ac = ActionController::Base.new
|
61
61
|
ac.instance_variable_set( :@app, app )
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.
|
4
|
+
version: 3.1.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mac_a2141
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|