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 +5 -5
- data/.gitignore +1 -0
- data/CHANGELOG.md +8 -0
- data/README.md +3 -0
- data/lib/chef/knife/data_bag_from_okta_group.rb +8 -5
- data/lib/knife-okta.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bb9cdd9e808fa7dcb17c281979b026ee1fdc832e8dc5319aa56fc218ce7da02d
|
4
|
+
data.tar.gz: 253fe557465c1192638852f027b3e8224a10aa87e30cf8c0aa5501cf5a7972a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8f6253e3095c2c7c8939bdfddb3166edf0e4dcfaa6d2b4d53bb33e31aedd16ac6b6a59bb8ad5bf694bb7164b86551332a7d000291294f1d35353bdb4ee5f311
|
7
|
+
data.tar.gz: 97dc236a24c5370679010db019d6d2b7319eb8f4d2490bafdd77028066bf8d8879b911dcff7d194a169b239f66642ca461a773c5fe32d1e4bfdf726463445a3f
|
data/.gitignore
CHANGED
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
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.
|
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-
|
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.
|
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.
|