wco_models 3.1.0.126 → 3.1.0.128
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: 47c3681ac6d5c0c89404e8d0c658a68cee9e86fabf97d89fd50c6be1dc3d7e7f
|
4
|
+
data.tar.gz: dbfe632f6d6517cb9c537adcf4ab6bf1b1811fc3a83414d69b8c2bf186939553
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 905172496a4162311c73e6a2e86a9fa1cf698941200e061e0f8bf829d1fd613828486caebcb2b1a9e200621da6c7ac78f13b2de264876b7b667d7b01f6424055
|
7
|
+
data.tar.gz: 7808190db66e80b94ee87269c0fcea21d3e69d577179f56e7096a646bc93f98e8cdeb61f9ad4b36817827ff0ea7d1ef13ef925970d59380145cf8ce527c0b78d
|
@@ -16,7 +16,7 @@ class WcoHosting::Appliance
|
|
16
16
|
self[:service_name] = host.gsub(".", "_")
|
17
17
|
end
|
18
18
|
|
19
|
-
belongs_to :environment, class_name: 'WcoHosting::Environment', inverse_of: :appliances
|
19
|
+
belongs_to :environment, class_name: 'WcoHosting::Environment', inverse_of: :appliances, optional: true
|
20
20
|
|
21
21
|
field :subdomain
|
22
22
|
field :domain
|
@@ -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
|
10
|
-
#
|
12
|
+
[ ! -e $filename ] && curl <%= @app.tmpl.volume_zip %> > $filename
|
13
|
+
# curl <%= @app.tmpl.volume_zip %> > $filename
|
11
14
|
|
12
15
|
## cache/overwrite
|
13
|
-
[ ! -e
|
14
|
-
#
|
16
|
+
[ ! -e build ] && unzip -o $filename -d build
|
17
|
+
# rm -rf build && unzip -o $filename -d build
|
15
18
|
|
16
|
-
mv
|
19
|
+
mv build ./volumes/<%= @app.service_name %>_data
|
17
20
|
|
18
21
|
set +ex
|
19
22
|
echo ok #create_volume
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wco_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.
|
4
|
+
version: 3.1.0.128
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|