aris-control 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aris-control/thor.rb +6 -1
- data/lib/aris-control/version.rb +1 -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: c3922ebdfa479a051e783e808fed3442b4019e6e
|
4
|
+
data.tar.gz: d0105e8bbd6c2b2ca5fec3052df6fdf6a8af4e76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92c0967e51a656c13287e6304318151de9e651e200d129aadccd3ded6b5b0a2e832fbfb9f372277f0acafab3125514e9a5f3ab36c984a3fed21b0b77eb6a3c3b
|
7
|
+
data.tar.gz: 5893fc6fb03513b2da0ea994b59577c35eabd66c2aa2cc5817401b89258c74b035b7247160babba3b00cad815e672aac389b8c293d303d7d3489358d44efb597
|
data/lib/aris-control/thor.rb
CHANGED
@@ -7,7 +7,12 @@ class ArisControl::Thor < Thor
|
|
7
7
|
method_option :ssh_key, type: :string, desc: 'The users ssh public key. Used for git access via ssh.'
|
8
8
|
method_option :env_vars, type: :hash, desc: 'The users app env vars. Env vars will be accessible inside the app via ENV[VAR-NAME].'
|
9
9
|
def add(name)
|
10
|
-
|
10
|
+
opts = Hash.new.tap do |h|
|
11
|
+
h[:email] = options[:email]
|
12
|
+
h[:ssh_key] = options[:ssh_key] if options[:ssh_key]
|
13
|
+
h[:env_vars] = options[:env_vars] if options[:env_vars]
|
14
|
+
end
|
15
|
+
bookkeeper.add(name: name, **opts)
|
11
16
|
puts "Added/Updated user: #{name}, #{options}"
|
12
17
|
puts "-----------------------------"
|
13
18
|
print_current_aris_users
|
data/lib/aris-control/version.rb
CHANGED