gpgenv 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gpgenv/base_command.rb +6 -1
- data/lib/gpgenv/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: b1f98097e67e8b91a24e1709664130b90bf3d9bd
|
4
|
+
data.tar.gz: c4cf7d2892247b5dbca66b5dfee82d86fcaaf395
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57e4cd252fe7e49da72fd388e5ddd2afd59297d5a31ec36b24223426352b3588fadb6aa384ba1df1bbed8a651b51c9b212938eee3497e87bea8b015db143aa8e
|
7
|
+
data.tar.gz: 8518188f949febded4201b6c0c247a0baf10e03c61bbb3abefbe79fee4b4d0400caf84dcaad4352516e8944526b34be4cafca5c75f31e26f704933eaaf8ed14f
|
data/lib/gpgenv/base_command.rb
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
require 'clamp'
|
2
|
+
require 'fileutils'
|
2
3
|
class Gpgenv
|
3
4
|
class BaseCommand < Clamp::Command
|
4
5
|
|
5
6
|
option ['-d', '--dir'], "DIR", "Directory to read env files from", default: "./.gpgenv"
|
6
7
|
|
7
8
|
def gpgenv
|
8
|
-
|
9
|
+
# Create a new empty directory if we're using the default.
|
10
|
+
if dir == './.gpgenv'
|
11
|
+
FileUtils.mkdir_p(dir)
|
12
|
+
end
|
13
|
+
@gpgenv ||= Gpgenv.new(dir: dir)
|
9
14
|
end
|
10
15
|
|
11
16
|
end
|
data/lib/gpgenv/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gpgenv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Shea
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|