harbr 0.0.34 → 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 +5 -2
- 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
|
@@ -103,8 +103,7 @@ module Harbr
|
|
|
103
103
|
container.host_header = manifest.host
|
|
104
104
|
container.ip = manifest.ip.nil?
|
|
105
105
|
container.port = port.number
|
|
106
|
-
containers.add(container) unless containers.find_by_header(manifest.host)
|
|
107
|
-
|
|
106
|
+
containers.add(container) unless containers.find_by_header(manifest.host)
|
|
108
107
|
system("cd /var/harbr/#{manifest.name}/current && bundle install")
|
|
109
108
|
system("sv restart #{manifest.name}")
|
|
110
109
|
puts "Started container: #{manifest.name}"
|
|
@@ -112,6 +111,10 @@ module Harbr
|
|
|
112
111
|
end
|
|
113
112
|
|
|
114
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}/`
|
|
115
118
|
run_container(manifest)
|
|
116
119
|
end
|
|
117
120
|
end
|
data/lib/harbr/version.rb
CHANGED