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 +4 -4
- data/lib/power-rake/common.rb +10 -2
- data/lib/power-rake/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84ddd5e49d2d8eb0a3bc233c43f4e7d315276fb2
|
4
|
+
data.tar.gz: d7f8299859b44f7b23993eb3942ab1b331e49745
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d3c4e551c3ab57157fe85cefd389e35f60b516229ca17e4d2c45be86d5671be41e3ef7cfe60a69ab90302c40f74dff426b438da1b97f212a5a89a21b325b4ab
|
7
|
+
data.tar.gz: 73726148200e33ddb103d5777c5c1dea6c40c33c5a74bded0485f67a9052d37109433c0167a5ec18e320abc3e685c5fd6fc88d8c0db4682a14fe5cacfeee0bf3
|
data/lib/power-rake/common.rb
CHANGED
@@ -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(
|
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
|
data/lib/power-rake/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|