knife-okta 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b5d7e4ffaba9c64d0ef8e33cf6a7964bb452c96e
4
- data.tar.gz: 31e4e7dee416cf3b12b6e1269fdc9485ffce5404
2
+ SHA256:
3
+ metadata.gz: bb9cdd9e808fa7dcb17c281979b026ee1fdc832e8dc5319aa56fc218ce7da02d
4
+ data.tar.gz: 253fe557465c1192638852f027b3e8224a10aa87e30cf8c0aa5501cf5a7972a5
5
5
  SHA512:
6
- metadata.gz: a38f61a65fa62b5b17934d0e9d7a2c6b889c96f5c97464e546affaf47ad80d1914fa126203579ee1d1f27f50da7355812de9b183d3d7e0d010ad03c2d51ab17b
7
- data.tar.gz: c5e8a8e139584cede147796de773453ddd6573de9888f744ff1c49ea39843b0c7a57b2161fd215af55ea433bd9b86ba4e3da3ea2dbf5d0dbf9cde9530e561142
6
+ metadata.gz: d8f6253e3095c2c7c8939bdfddb3166edf0e4dcfaa6d2b4d53bb33e31aedd16ac6b6a59bb8ad5bf694bb7164b86551332a7d000291294f1d35353bdb4ee5f311
7
+ data.tar.gz: 97dc236a24c5370679010db019d6d2b7319eb8f4d2490bafdd77028066bf8d8879b911dcff7d194a169b239f66642ca461a773c5fe32d1e4bfdf726463445a3f
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ Gemfile.lock
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## 0.1.1 (2018-03-06)
8
+
9
+ ### Fixed
10
+
11
+ * Fix test for multiple group parsing, comma separated value wasn't not being split
12
+ * Fix returned list to contain unique values
13
+ * Fix rubocop warning for Codacy
14
+
7
15
  ## 0.1.0 (2018-02-01)
8
16
 
9
17
  First release.
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # knife-okta
2
2
 
3
+ [![Build Status](https://travis-ci.org/schubergphilis/knife-okta.svg?branch=master)](https://travis-ci.org/schubergphilis/knife-okta)
4
+ [![Gem](https://img.shields.io/gem/v/knife-okta.svg)](https://rubygems.org/gems/knife-okta)
5
+
3
6
  knife-okta is a knife plugin to interact with the Okta API.
4
7
 
5
8
  The initial use case is to create data bags based on Okta group membership.
@@ -68,10 +68,7 @@ class Chef
68
68
  def run
69
69
  validate_arguments
70
70
  validate_okta_config
71
-
72
- @data_bag_name = @name_args.shift
73
- @data_bag_item_name = @name_args.shift
74
- @okta_groups = @name_args
71
+ setup
75
72
 
76
73
  begin
77
74
  Chef::DataBag.validate_name!(@data_bag_name)
@@ -131,6 +128,12 @@ class Chef
131
128
  end
132
129
  end
133
130
 
131
+ def setup
132
+ @data_bag_name = @name_args.shift
133
+ @data_bag_item_name = @name_args.shift
134
+ @okta_groups = @name_args.shift.split(',')
135
+ end
136
+
134
137
  def tmpdir
135
138
  @tmpdir ||= Dir.mktmpdir
136
139
  end
@@ -159,7 +162,7 @@ class Chef
159
162
  end
160
163
  end
161
164
 
162
- values.compact.sort
165
+ values.compact.sort.uniq
163
166
  end
164
167
 
165
168
  def same_as_existing_data_bag_item?
data/lib/knife-okta.rb CHANGED
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module KnifeOkta
19
- VERSION = "0.1.0"
19
+ VERSION = "0.1.1"
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-okta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Hoekstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-01 00:00:00.000000000 Z
11
+ date: 2018-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 2.6.11
81
+ rubygems_version: 2.7.5
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: A knife plugin to interact with the Okta API.