lbhrr 1.0.20 → 1.0.23
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/config/manifest.yml +1 -1
- data/exe/lbhrr +16 -14
- data/lib/lbhrr/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: 97455904c9513fd9f6a8c594c5747b85195c9c0e253e2c99d16ca2bc106304d8
|
|
4
|
+
data.tar.gz: 6b375eef27e9101c046ba628724df7a9ab467a511bc82123adedf3df7fa04881
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e07cc919f47975a307d68c1f95ccd09a41114bdbfaf9d480f80c359e66729fdae0476eab46461bb6d306ea437b09d96c0ed97ddb51120e2ba6104e83764b5059
|
|
7
|
+
data.tar.gz: 2129dee935ff5dd79bebd2e068d75d1bf440c52faf176f9fbf418c7f90e62a543e7b1db30e9d8a9ddbbbb417174e262638fe82574a836a985520e6d6edceff13
|
data/config/manifest.yml
CHANGED
data/exe/lbhrr
CHANGED
|
@@ -189,17 +189,18 @@ class LbhrrCLI < Thor
|
|
|
189
189
|
|
|
190
190
|
desc "drop", "Destroy an app and remove all traces"
|
|
191
191
|
def drop(name=nil)
|
|
192
|
+
config = load_configuration
|
|
193
|
+
host = config["host"]
|
|
194
|
+
user = config["user"]
|
|
195
|
+
|
|
192
196
|
if name.nil?
|
|
193
|
-
|
|
194
|
-
config = load_configuration
|
|
195
|
-
host = config["host"]
|
|
196
|
-
user = config["user"]
|
|
197
|
-
name = config["name"]
|
|
197
|
+
name = File.basename(Dir.pwd)
|
|
198
198
|
end
|
|
199
|
+
|
|
199
200
|
puts "Destroying app: #{name}"
|
|
200
201
|
`ssh #{user}@#{host} 'harbr destroy #{name}'`
|
|
201
202
|
|
|
202
|
-
puts "App #{
|
|
203
|
+
puts "App #{name} has been successfully destroyed."
|
|
203
204
|
end
|
|
204
205
|
|
|
205
206
|
desc "raise", "Deploy an application using the configuration from config/manifest.yml to staging"
|
|
@@ -289,15 +290,15 @@ class LbhrrCLI < Thor
|
|
|
289
290
|
|
|
290
291
|
desc "hoist", "Deploy an application using the configuration from config/manifest.yml to production"
|
|
291
292
|
def hoist(name=nil)
|
|
293
|
+
config = load_configuration
|
|
294
|
+
host = config["host"]
|
|
295
|
+
user = config["user"]
|
|
296
|
+
|
|
292
297
|
if name.nil?
|
|
293
298
|
unless manifest?
|
|
294
299
|
puts "no manifest found!"
|
|
295
300
|
return
|
|
296
301
|
end
|
|
297
|
-
|
|
298
|
-
config = load_configuration
|
|
299
|
-
host = config["host"]
|
|
300
|
-
user = config["user"]
|
|
301
302
|
name = config["name"]
|
|
302
303
|
end
|
|
303
304
|
puts `ssh #{user}@#{host} 'harbr deploy #{name}'`
|
|
@@ -305,15 +306,16 @@ class LbhrrCLI < Thor
|
|
|
305
306
|
|
|
306
307
|
desc "rollback", "rollback an application using the configuration from config/manifest.yml"
|
|
307
308
|
def rollback(name=nil)
|
|
309
|
+
|
|
310
|
+
config = load_configuration
|
|
311
|
+
host = config["host"]
|
|
312
|
+
user = config["user"]
|
|
313
|
+
|
|
308
314
|
if name.nil?
|
|
309
315
|
unless manifest?
|
|
310
316
|
puts "no manifest found!"
|
|
311
317
|
return
|
|
312
318
|
end
|
|
313
|
-
|
|
314
|
-
config = load_configuration
|
|
315
|
-
host = config["host"]
|
|
316
|
-
user = config["user"]
|
|
317
319
|
name = config["name"]
|
|
318
320
|
end
|
|
319
321
|
puts `ssh #{user}@#{host} 'harbr rollback #{name}'`
|
data/lib/lbhrr/version.rb
CHANGED