lbhrr 1.0.10 → 1.0.12
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/exe/lbhrr +13 -4
- data/lib/lbhrr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 91fd4a2fb48ee0aa24a2ab1ee1a32eaee8754c2c6e7fa9b66c2c490c1110e79c
|
|
4
|
+
data.tar.gz: 83c946569babfa407980890bbb889f4f08ffb10ee5366df055fe993452e839b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9bc09acbe05020346c22d66bcdcd51f48572717e205d5a5c47f48e4c0b57801c40f396f4bed1c1adbaf9f9250d63e1291788870c27dc08c8716cd1f569b72ec0
|
|
7
|
+
data.tar.gz: 863bd1dbbd519a92b610be1437b95d577f30d9d35010fb2f6e7743534897e94c0febf2f109857afe2e7020fe0717c89916384f09f9fbdbeaf329dffc7983b878
|
data/exe/lbhrr
CHANGED
|
@@ -229,8 +229,7 @@ class LbhrrCLI < Thor
|
|
|
229
229
|
base_directory = "/var/harbr/containers/#{basename}"
|
|
230
230
|
versions_directory = "#{base_directory}/versions"
|
|
231
231
|
destination_path = "#{versions_directory}/#{version}"
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
|
|
234
233
|
# Check and create the versions directory on the server
|
|
235
234
|
`ssh #{user}@#{host} 'mkdir -p #{versions_directory}'`
|
|
236
235
|
|
|
@@ -241,8 +240,7 @@ class LbhrrCLI < Thor
|
|
|
241
240
|
# Rsync files to the new version directory, excluding files as per .gitignore
|
|
242
241
|
rsync_command = "rsync -avz #{exclude_option} ./ #{user}@#{host}:#{destination_path}"
|
|
243
242
|
|
|
244
|
-
if `#{rsync_command}`
|
|
245
|
-
`ssh #{user}@#{host} 'ln -sfn #{destination_path} #{current_path}'`
|
|
243
|
+
if `#{rsync_command}`
|
|
246
244
|
puts "Successfully deployed application version #{version} to #{host}"
|
|
247
245
|
deployed(local_manifest_path, version)
|
|
248
246
|
else
|
|
@@ -273,6 +271,17 @@ class LbhrrCLI < Thor
|
|
|
273
271
|
puts `ssh #{user}@#{host} 'harbr deploy #{name}'`
|
|
274
272
|
end
|
|
275
273
|
|
|
274
|
+
desc "rollback", "rollback an application using the configuration from config/manifest.yml"
|
|
275
|
+
def rollback
|
|
276
|
+
config = load_configuration
|
|
277
|
+
host = config["host"]
|
|
278
|
+
user = config["user"]
|
|
279
|
+
name = config["name"]
|
|
280
|
+
|
|
281
|
+
puts `ssh #{user}@#{host} 'harbr rollback #{name}'`
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
|
|
276
285
|
def self.exit_on_failure?
|
|
277
286
|
true
|
|
278
287
|
end
|
data/lib/lbhrr/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lbhrr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Delaney Kuldvee Burke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-12-
|
|
11
|
+
date: 2023-12-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-ssh
|