base_script 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/base_script/version.rb +1 -1
- data/lib/base_script.rb +4 -2
- 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: 368fc4ba3f9c74b95cadb1af003d943606860bb8
|
4
|
+
data.tar.gz: 17bd19ba4d596609858fce618eab2b6afd281671
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14356b37be02419e119353510a264d3f59b07ac8a1a971c4fc8f0b3f470b62232fae5d13b5dd927b74d1a88cecef5c602fa67ff97ccbe0cff7887348d81267fe
|
7
|
+
data.tar.gz: f45b83af8d612d594727f426ff4c2ef90bbe3415b92f2aed5c369560f4617493ece8bc3f8aef84f96ac7971ff5329d89a05edce3258b60e64d09d6e214ba31f1
|
data/lib/base_script/version.rb
CHANGED
data/lib/base_script.rb
CHANGED
@@ -60,7 +60,9 @@ class BaseScript
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
def verbose
|
63
|
+
def verbose?
|
64
|
+
arg("v") || arg("verbose")
|
65
|
+
end
|
64
66
|
|
65
67
|
##
|
66
68
|
# Logging.
|
@@ -138,7 +140,7 @@ class BaseScript
|
|
138
140
|
# Execute block unless dry run
|
139
141
|
def unless_dry_run(message)
|
140
142
|
if dry?
|
141
|
-
|
143
|
+
vlog "Skipping due to dry run: #{message}"
|
142
144
|
else
|
143
145
|
vlog message
|
144
146
|
yield
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: base_script
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Annesley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|