ish_models 3.1.0.17 → 3.1.0.18

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: fc3056e321f83d069cb82d5faa4223206443d4bd187e12fe2fa242d0a235ec98
4
- data.tar.gz: fecd205816177999eca53542fc1fa4d3900ebb2f050118001e82f49131823253
3
+ metadata.gz: b697e15fa3600c6da649b862c536b7acfc36670075e5afc236982dbdd932b378
4
+ data.tar.gz: 92615b9c83accdc281029599e92cdd17aad4a6bc510663d4f590b25314daeeb5
5
5
  SHA512:
6
- metadata.gz: 474a5d1e4245662c1dc26a7827d503b40716bc4a2162ea2cf865a35ac7e73fbea6e6de2f7f89bc434112da188be61ed6daeb110ca0e493aa8c39536c39e8035b
7
- data.tar.gz: 73a7ef052debb57b8f021209529008184568128f4d419f4ba763f214961f2e3162fef8f4337e120e2399fd71545f22d5500330be30db2751a426d3aa4c92ad27
6
+ metadata.gz: ca7d47294b41367f1c12828b325a76aa5ef4481f0ebbd4698834a9a622d48ff5dba420aafa57e4f5f7f6ace1de1712236c05ea1c78eba0a8ee46089c3dd980be
7
+ data.tar.gz: d4b87a0122efe2328406d064687f9620b1f3410daf4ce57ad0fe47eaab06297f5d40b57e6a1ea92b36c0ccb0af2fa02db082664a96f557c64e45681b650465d9
@@ -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
+ add_subdomain( app )
37
38
 
38
- ##
39
- ## DNS add_subdomain
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
- # file = Tempfile.new('prefix')
47
- # file.write rendered_str
48
- # file.close
42
+ def add_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 '+++ add_subdomain rendered_str:'; print rendered_str
49
47
 
50
- # cmd = "aws route53 change-resource-record-sets \
51
- # --hosted-zone-id <%= app.route53_zone %> \
52
- # --change-batch file://<%= file.path %> "
53
- # puts! cmd, 'cmd'
54
- # `#{cmd}`
48
+ file = Tempfile.new('prefix')
49
+ file.write rendered_str
50
+ file.close
55
51
 
56
- update({ next_port: app.serverhost.next_port + 1 })
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.17
4
+ version: 3.1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - mac_a2141