aris-control 1.1.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc8d35cb9bb2b5c37bee23c4670d833bd3f4eb2f
4
- data.tar.gz: 412e501ff0d538c18edd2fa988cdd550b17a9827
3
+ metadata.gz: c3922ebdfa479a051e783e808fed3442b4019e6e
4
+ data.tar.gz: d0105e8bbd6c2b2ca5fec3052df6fdf6a8af4e76
5
5
  SHA512:
6
- metadata.gz: 36d18242ef129581d0bc0354508b54dd857156273c8bd252e3bffd6a30182ef37596da37b5a93d0ff3b80f5cac0a279c1ad10f16d5d882713783fa5338e6ab30
7
- data.tar.gz: 2e0f98c55500a6a6d664bdb79f5a2c40f35a4af3e89053da07516a039dd29846c46d2b2bcf40e76e2ebdcdf43c39fc39ec9cf04d4ae059191c5357af4063d6de
6
+ metadata.gz: 92c0967e51a656c13287e6304318151de9e651e200d129aadccd3ded6b5b0a2e832fbfb9f372277f0acafab3125514e9a5f3ab36c984a3fed21b0b77eb6a3c3b
7
+ data.tar.gz: 5893fc6fb03513b2da0ea994b59577c35eabd66c2aa2cc5817401b89258c74b035b7247160babba3b00cad815e672aac389b8c293d303d7d3489358d44efb597
@@ -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
- bookkeeper.add(name: name, **options)
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
@@ -1,3 +1,3 @@
1
1
  module ArisControl
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aris-control
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Igelmund