greenhouse 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/greenhouse/cli.rb +5 -0
- data/lib/greenhouse/commands/command.rb +1 -0
- data/lib/greenhouse/resources/dotenv_file.rb +1 -0
- data/lib/greenhouse/version.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70e837df0dc41ac4c7420f9d91fe280e76299325
|
4
|
+
data.tar.gz: cbb320ed8cd0d342c759c75d33d3afd0b097acea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ba75f3252e4a8c61bd26cef97d1bf0663133c1c037b216c65c2e6670f46700163ef5d19ca3d2dd5d2beb01c61d7496e10fe383c18cba67eb100c33ec486a09
|
7
|
+
data.tar.gz: 328f1386ec44208f0478a52b266d99a2a0da28b6cbd8b6a4b68fff739e264479ab7d677c42451b08a1247b393775ebfca4de5903372d75a141439ba2f0d75fce
|
data/lib/greenhouse/cli.rb
CHANGED
@@ -3,11 +3,16 @@ module Greenhouse
|
|
3
3
|
include Scripts::Script
|
4
4
|
|
5
5
|
valid_argument Scripts::Argument.new("-v, --verbose", :valid => [], :summary => "Output additional information from command executions to STDOUT")
|
6
|
+
valid_argument Scripts::Argument.new("-d, --debug", :valid => [], :summary => "Output full backtraces for exceptions and errors")
|
6
7
|
|
7
8
|
def self.verbose?
|
8
9
|
user_arguments.map(&:key).include?("-v")
|
9
10
|
end
|
10
11
|
|
12
|
+
def self.debug?
|
13
|
+
user_arguments.map(&:key).include?("-d")
|
14
|
+
end
|
15
|
+
|
11
16
|
def self.exec(cmd)
|
12
17
|
if verbose?
|
13
18
|
system cmd
|
data/lib/greenhouse/version.rb
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
module Greenhouse
|
2
|
-
VERSION = "0.0.
|
2
|
+
VERSION = "0.0.10"
|
3
3
|
end
|
4
4
|
|
5
5
|
__END__
|
6
|
+
0.0.10:
|
7
|
+
* Adding a -d/--debug flag to output full backtraces
|
8
|
+
* Not writing empty .env vars
|
9
|
+
|
6
10
|
0.0.9:
|
7
11
|
* Removing a really stupid debug raise call that got missed in the last release (need to write specs!!)
|
8
12
|
|