lbhrr 1.0.18 → 1.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/lbhrr +14 -29
- 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: 4565bfaa3c0b7ff2211bd0ed674d52d1498b822e0d52a3f49317be48f755bd30
|
4
|
+
data.tar.gz: a5c837fc1765021da61c723e2d07eb67ce7d845722d43dacbc44e33b038fbe66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: feca957eaa9a0e1201eccc01c36795ebfc8dad83005e715278325618d78343af259cbf67d2b74deeac68d0ea179d6347e46ef6ffba5c3029bdf5072e0f163118
|
7
|
+
data.tar.gz: 1a3805f88687e6378a251dc7f6023be74b50e821ec80ec2b604a00d184ff298997d5cf51471e4785646b3fc3b98402bac8d06527550ff566e973e71d868a9d13
|
data/exe/lbhrr
CHANGED
@@ -188,42 +188,27 @@ class LbhrrCLI < Thor
|
|
188
188
|
end
|
189
189
|
|
190
190
|
desc "drop", "Destroy an app and remove all traces"
|
191
|
-
def drop
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
`ssh #{user}@#{host} 'harbr destroy #{container_name}'`
|
199
|
-
unless manifest?
|
200
|
-
puts "no manifest found!"
|
201
|
-
return
|
202
|
-
end
|
203
|
-
|
204
|
-
current_dir = Dir.pwd
|
205
|
-
parent_dir = File.dirname(current_dir)
|
206
|
-
|
207
|
-
# Requesting confirmation
|
208
|
-
if yes? "Are you sure you want to delete the directory: #{current_dir}? [y/N]"
|
209
|
-
# Proceeding with deletion
|
210
|
-
puts "Changing directory to the parent directory..."
|
211
|
-
Dir.chdir(parent_dir)
|
212
|
-
|
213
|
-
puts "Deleting the directory: #{current_dir}"
|
214
|
-
FileUtils.rm_rf(current_dir)
|
215
|
-
|
216
|
-
Dir.chdir(parent_dir)
|
217
|
-
|
218
|
-
puts "#{current_dir} has been deleted."
|
219
|
-
|
191
|
+
def drop(name=nil)
|
192
|
+
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"]
|
220
198
|
end
|
199
|
+
puts "Destroying app: #{name}"
|
200
|
+
`ssh #{user}@#{host} 'harbr destroy #{name}'`
|
221
201
|
|
222
202
|
puts "App #{container_name} has been successfully destroyed."
|
223
203
|
end
|
224
204
|
|
225
205
|
desc "raise", "Deploy an application using the configuration from config/manifest.yml to staging"
|
226
206
|
def raise
|
207
|
+
unless manifest?
|
208
|
+
puts "no manifest found!"
|
209
|
+
return
|
210
|
+
end
|
211
|
+
|
227
212
|
package
|
228
213
|
|
229
214
|
config = load_configuration
|
data/lib/lbhrr/version.rb
CHANGED