harbr 0.0.33 → 0.0.35
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 +4 -4
- data/lib/harbr/job.rb +8 -8
- data/lib/harbr/version.rb +1 -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: e5dbb37decfadae00d58e951cd39741aedfb3dad2191fd4d859be6cb89f8fbd8
|
|
4
|
+
data.tar.gz: a27e2714a909dd914edf74a989ced57f992d6eeb278f41c1491559285343196f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b63fd1a9ed612c9ee03717abd6d91a7d8ab22ff5aedf3279b43071408f718f79572c22bf078f7d1089897cc2e5b3af3434a94ec0aabb937a2bdcfb4a9ddc4c08
|
|
7
|
+
data.tar.gz: e5338923c29f534620380cffd42eb168b8d9a73a17518124f7ae5ea5071018782b724d790e1c190508f87aa8dfcdae0a0ea6e0651349ce35ee1409ed8c3fbb86
|
data/lib/harbr/job.rb
CHANGED
|
@@ -96,12 +96,6 @@ module Harbr
|
|
|
96
96
|
|
|
97
97
|
create_a_service(manifest.name, port.number)
|
|
98
98
|
|
|
99
|
-
sleep 5
|
|
100
|
-
system("sv restart #{manifest.name}")
|
|
101
|
-
sleep 5
|
|
102
|
-
system("sv status #{manifest.name}")
|
|
103
|
-
puts "Started container: #{manifest.name}"
|
|
104
|
-
|
|
105
99
|
container = Container.new
|
|
106
100
|
containers = Container::Repository.new
|
|
107
101
|
|
|
@@ -109,12 +103,18 @@ module Harbr
|
|
|
109
103
|
container.host_header = manifest.host
|
|
110
104
|
container.ip = manifest.ip.nil?
|
|
111
105
|
container.port = port.number
|
|
112
|
-
containers.add(container) unless containers.find_by_header(manifest.host)
|
|
113
|
-
|
|
106
|
+
containers.add(container) unless containers.find_by_header(manifest.host)
|
|
107
|
+
system("cd /var/harbr/#{manifest.name}/current && bundle install")
|
|
108
|
+
system("sv restart #{manifest.name}")
|
|
109
|
+
puts "Started container: #{manifest.name}"
|
|
114
110
|
create_traefik_config(containers.all)
|
|
115
111
|
end
|
|
116
112
|
|
|
117
113
|
def perform(manifest)
|
|
114
|
+
`sv stop #{manifest.name}`
|
|
115
|
+
`rm -rf /etc/sv/harbr/#{manifest.name}/`
|
|
116
|
+
`rm -rf /etc/service/#{manifest.name}`
|
|
117
|
+
`rm -rf /var/log/harbr/#{manifest.name}/`
|
|
118
118
|
run_container(manifest)
|
|
119
119
|
end
|
|
120
120
|
end
|
data/lib/harbr/version.rb
CHANGED