simple-cli 0.2.19 → 0.2.20

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: 7ad5562abdf4690d3ba8a6733c0669f42cdffe673c9a9833f1e4d8e43c4d048b
4
- data.tar.gz: 1ab4c259ffb2372efd1caaf6aed9b5df6e634cfa849b7fd22d071c00e87179fc
3
+ metadata.gz: 2d26ea250d929404c83f6c19ea9c0a188f53f18b67184305cdf21bb543ae68d6
4
+ data.tar.gz: 288e4524b2cef953b78be71745f9f41f3b1def3091f6780e6f137e4e7f4e855e
5
5
  SHA512:
6
- metadata.gz: 4d821d8d77506188106ad50627f7336569a61cd07dc60ace53697c6d7d2cd8ce6ce63a881b69454e0f791ae3c771dd91cf36a07e2e2b3b39c2e5da393f17093c
7
- data.tar.gz: 7e2d94b98fa2f5e068a91869da0624891a271ea320845719b08196fd25b3f87137f6958cf3dba66fa8b24144daaff018e3c70a19d8d6144b34188bb06deffc1a
6
+ metadata.gz: 44e5a83ad0ee46147c0c5c36cb68a424f5b132a215c1e3bc0f59198e2fd38edad1a6a67aed8a7d47a95951dcd59aef0636688257c3d9a0cef5a38c74c45ac6ce
7
+ data.tar.gz: 4d735d8b7b4a38c95c0ee923ab6695cff2b45ef641a28dd130598a78983785bd551f785d2d92d2f757ee8a927096b7e4d219b565e14099cbd3f82391f49bd144
@@ -18,6 +18,16 @@ module Simple::CLI::Helpers
18
18
  ::Simple::CLI.logger
19
19
  end
20
20
 
21
+ def confirm(msg)
22
+ STDERR.puts <<~MSG
23
+ #{msg}
24
+
25
+ Press return to continue, ^C to cancel...
26
+ MSG
27
+
28
+ STDIN.gets
29
+ end
30
+
21
31
  SSH = "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
22
32
 
23
33
  def ssh_command(host, user: nil)
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module CLI
3
- VERSION = "0.2.19"
3
+ VERSION = "0.2.20"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.19
4
+ version: 0.2.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-07-04 00:00:00.000000000 Z
12
+ date: 2019-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake