firespring_dev_commands 2.1.1.pre.alpha.1 → 2.1.1.pre.alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/firespring_dev_commands/common.rb +4 -2
- data/lib/firespring_dev_commands/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: 369c113ffd1b5a9c345d8123c4df7e5a635983cbdffbb9b9a2dadc8826be7fb5
|
4
|
+
data.tar.gz: fa3643a4470b8f041af334969af99543ce7581bf088656a18bffae6ba2587e96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cded404bdfaf2aa243fac1cf9a344fefad9023ab1cb7c339dba77f4ffec8acbd6f86d8c94baebc72d3e79d63dfba56c253a863b9d5c868379d9bad7cadcabef
|
7
|
+
data.tar.gz: 3f272118fc39705182f6f7365a68bb67e9e3f9faf1e6e9fd4ef2043ea0e9a25e2472f80e01aa50a8f032662a0abe39d28944b8205b8065108ec447a8a1a363ec
|
@@ -40,8 +40,10 @@ module Dev
|
|
40
40
|
# Wraps a block of code in a y/n question.
|
41
41
|
# If the user answers 'y' then the block is executed.
|
42
42
|
# If the user answers 'n' then the block is skipped.
|
43
|
-
def with_confirmation(message, default = 'y')
|
44
|
-
|
43
|
+
def with_confirmation(message, default = 'y', color_message: true)
|
44
|
+
message = "\n #{message}? "
|
45
|
+
message = message.light_green if color_message
|
46
|
+
print message
|
45
47
|
print '('.light_green << 'y'.light_yellow << '/'.light_green << 'n'.light_yellow << ') '.light_green
|
46
48
|
|
47
49
|
answer = default
|