lbhrr 1.0.20 → 1.0.23

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: 4565bfaa3c0b7ff2211bd0ed674d52d1498b822e0d52a3f49317be48f755bd30
4
- data.tar.gz: a5c837fc1765021da61c723e2d07eb67ce7d845722d43dacbc44e33b038fbe66
3
+ metadata.gz: 97455904c9513fd9f6a8c594c5747b85195c9c0e253e2c99d16ca2bc106304d8
4
+ data.tar.gz: 6b375eef27e9101c046ba628724df7a9ab467a511bc82123adedf3df7fa04881
5
5
  SHA512:
6
- metadata.gz: feca957eaa9a0e1201eccc01c36795ebfc8dad83005e715278325618d78343af259cbf67d2b74deeac68d0ea179d6347e46ef6ffba5c3029bdf5072e0f163118
7
- data.tar.gz: 1a3805f88687e6378a251dc7f6023be74b50e821ec80ec2b604a00d184ff298997d5cf51471e4785646b3fc3b98402bac8d06527550ff566e973e71d868a9d13
6
+ metadata.gz: e07cc919f47975a307d68c1f95ccd09a41114bdbfaf9d480f80c359e66729fdae0476eab46461bb6d306ea437b09d96c0ed97ddb51120e2ba6104e83764b5059
7
+ data.tar.gz: 2129dee935ff5dd79bebd2e068d75d1bf440c52faf176f9fbf418c7f90e62a543e7b1db30e9d8a9ddbbbb417174e262638fe82574a836a985520e6d6edceff13
data/config/manifest.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  name: lbhrr
3
- version: '0'
3
+ version: 1
4
4
  port:
5
5
  host: lbhrr.harbr.zero2one.ee
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
- container_name = File.basename(Dir.pwd)
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 #{container_name} has been successfully destroyed."
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lbhrr
4
- VERSION = "1.0.20"
4
+ VERSION = "1.0.23"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lbhrr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.20
4
+ version: 1.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke