wco_models 3.1.0.126 → 3.1.0.127

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
  SHA256:
3
- metadata.gz: 9a460451e76e84969e808c9e50124456db09abd0948926be42151ea19911cab0
4
- data.tar.gz: 9a28142b46f120dfe7e0d6c34a220609d52ca58294643585e6f6908aa09ac87e
3
+ metadata.gz: 4b2ddd5c01dd7dde872b1e8203be3ae681c2e5cb5f227dd0ae464f77e44fd49b
4
+ data.tar.gz: 55eeacdf564b1394a426faec3160604df1b97e96574c95e9172cf638d1b3e8b9
5
5
  SHA512:
6
- metadata.gz: 01a0263fcfa71456b3d1789e34956436967d71353b3b3e79b39ccb58a1ca0fb174a6834d096daba36580428dfd29d9d224282a387ce585db31e5301e7c09c701
7
- data.tar.gz: efa8987c17686a1b737a901117d22fc89fe47b64b3fa15db21dda54f71a63c98919f14f5682adec2b3aa63c78af4d0137e394c5dc90f802b2094e2ca244b0282
6
+ metadata.gz: f4ecb3a2f26f9bb005c1dacb8ec40304f451a9ecf5698a088dee4ee9344cf4fee0bd5effdee8f9a7f21efb16f3ba030aebcf1191968cc5cbf14495658d2a7551
7
+ data.tar.gz: e5d4cac4740bb1b8848423379c4b3d33b1387ced1902dc953a7c2bca99b4864098c604393cf18a009575259de49aa4c21916073d36dd1f4dae570ae55e333c51
@@ -85,7 +85,8 @@ class WcoHosting::Serverhost
85
85
  ac = ActionController::Base.new
86
86
  ac.instance_variable_set( :@app, app )
87
87
  ac.instance_variable_set( :@workdir, WORKDIR )
88
- rendered_str = ac.render_to_string("wco_hosting/docker-compose/dc-#{app.tmpl.kind}")
88
+ # rendered_str = ac.render_to_string("wco_hosting/docker-compose/dc-#{app.tmpl.kind}")
89
+ rendered_str = ac.render_to_string("wco_hosting/docker-compose/dc-any")
89
90
  Wco::Log.puts! rendered_str, 'add_docker_service rendered_str', obj: @obj
90
91
 
91
92
  file = Tempfile.new('prefix')
@@ -1,19 +1,22 @@
1
1
  #!/bin/bash
2
2
 
3
+ function download { name="$(basename $1)"; curl "$1" > "$name"; }
4
+ export filename="$(basename <%= @app.tmpl.volume_zip %>)"
5
+
3
6
  set -ex
4
7
 
5
8
  cd <%= @workdir %>
6
9
  rm -rf __MACOSX
7
10
 
8
11
  ## cache/overwrite
9
- [ ! -e <%= @app.kind %>__prototype.zip ] && curl <%= @app.tmpl.volume_zip %> > <%= @app.kind %>__prototype.zip
10
- # curl <%= @app.tmpl.volume_zip %> > <%= @app.kind %>__prototype.zip
12
+ [ ! -e $filename ] && curl <%= @app.tmpl.volume_zip %> > $filename
13
+ # curl <%= @app.tmpl.volume_zip %> > $filename
11
14
 
12
15
  ## cache/overwrite
13
- [ ! -e <%= @app.kind %>__prototype ] && rm -rf <%= @app.kind %>__prototype && unzip -o <%= @app.kind %>__prototype.zip
14
- # rm -rf <%= @app.kind %>__prototype && unzip -o <%= @app.kind %>__prototype.zip
16
+ [ ! -e build ] && unzip -o $filename -d build
17
+ # rm -rf build && unzip -o $filename -d build
15
18
 
16
- mv <%= @app.kind %>__prototype ./volumes/<%= @app.service_name %>_data
19
+ mv build ./volumes/<%= @app.service_name %>_data
17
20
 
18
21
  set +ex
19
22
  echo ok #create_volume
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.126
4
+ version: 3.1.0.127
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev