power-rake 0.0.9 → 0.0.10

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
  SHA1:
3
- metadata.gz: a1f9de5356ff4663c0158610ec307352781291e4
4
- data.tar.gz: 9bb3a7459ea15eb8ebcde6564417984711bc4cf4
3
+ metadata.gz: 84ddd5e49d2d8eb0a3bc233c43f4e7d315276fb2
4
+ data.tar.gz: d7f8299859b44f7b23993eb3942ab1b331e49745
5
5
  SHA512:
6
- metadata.gz: 83448bbb8599c1dbd935e28caac0baacc77aa3fd289d3054842707fdf2183e7d0b1194a008f641d8b58cc2892d542446b5811fc7f812a1003f6f2fe15e1805e2
7
- data.tar.gz: 8f1cb44c6239b18def74a17efc215e0d5d265939854a08fd415ee387c7528af20eee4c49221f4810c8d904ff500f0b5aec1ca3197b3f3274f6cc5bd46dbe6a66
6
+ metadata.gz: 0d3c4e551c3ab57157fe85cefd389e35f60b516229ca17e4d2c45be86d5671be41e3ef7cfe60a69ab90302c40f74dff426b438da1b97f212a5a89a21b325b4ab
7
+ data.tar.gz: 73726148200e33ddb103d5777c5c1dea6c40c33c5a74bded0485f67a9052d37109433c0167a5ec18e320abc3e685c5fd6fc88d8c0db4682a14fe5cacfeee0bf3
@@ -2,8 +2,8 @@
2
2
 
3
3
  # Prompt with control flow
4
4
  # @param [String]
5
- def continue?(message)
6
- abort 'Aborted!' unless prompt("#{message} (y|n)").downcase == 'y'
5
+ def continue?(message = 'Continue? (y|n)')
6
+ abort 'Aborted!' unless prompt(message).downcase == 'y'
7
7
  end
8
8
 
9
9
  # Inline message prompt
@@ -18,3 +18,11 @@ end
18
18
  def try(command)
19
19
  system(command) || abort("Aborted! `#{command}`")
20
20
  end
21
+
22
+ # Prompt before trying a system command
23
+ # @param [string]
24
+ def try?(command)
25
+ puts command
26
+ continue?
27
+ try(command)
28
+ end
@@ -1,3 +1,3 @@
1
1
  module PowerRake
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Tulino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-03 00:00:00.000000000 Z
11
+ date: 2020-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake