kanrisuru 0.16.12 → 0.16.13

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
2
  SHA256:
3
- metadata.gz: dd3a735e0a70fbbb36f076c0da975dfd3b9088a48d4efc4668de218d7c60f0e3
4
- data.tar.gz: 7b3eb81b6d3f3f1152d96963c0dd24d2effd0b84d7718dc613ae0a610b78544e
3
+ metadata.gz: 247c662cf0cedccfd41d702e372cc536958fbfd16c583643201e13e528c3c049
4
+ data.tar.gz: 8d6256b6b5dfcf84793851432e0dfedfd352222bebb04bc530bb15bc9cdcd0d5
5
5
  SHA512:
6
- metadata.gz: 4c2647a730b53a3ab851e737526bc95f2a8b8f05bf7c4e7325b5a08be1e0bd90cc2c9815850f9f1635a03658566dc28c84e935dd069551ead0fd534ea8d9c78c
7
- data.tar.gz: ab3b397ed40a8b3282178dbb019f336455b9bbbd9d8b0f350695441735dbe65d7e25a3b346409f52c3449e11185c91b496df5384d6ad23b65017e29fda53e3d2
6
+ metadata.gz: 31bde2ec4894d4e6962ff99b438b67502687446918d59180693d11275e25944c1af1e22ad923e799c4208e7fff62ad93e9867082765b956d213b12eb5a950092
7
+ data.tar.gz: b69992182e95c7f3cf3061cd4f25d875ff6095ee7e18580a39f24a6be8c6978401d9023e55be01bbb0aac92b74ec904a016abdf60a4302c9fc1cfdd32df276b2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## Kanrisuru 0.16.13 (January 01, 2022) ##
2
+ * Add `non_unique` and `system` opts to `create_group` command
3
+
1
4
  ## Kanrisuru 0.16.12 (January 01, 2022) ##
2
5
  * Update date ranges for 2022 on license files.
3
6
  * Add unit test case for `Kanrisuru::Logger`.
@@ -8,6 +8,8 @@ module Kanrisuru
8
8
 
9
9
  command = Kanrisuru::Command.new("groupadd #{group}")
10
10
  command.append_arg('-g', gid)
11
+ command.append_flag('-o', opts[:non_unique])
12
+ command.append_flag('-r', opts[:system])
11
13
 
12
14
  execute_shell(command)
13
15
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kanrisuru
4
- VERSION = '0.16.12'
4
+ VERSION = '0.16.13'
5
5
  end
@@ -21,7 +21,14 @@ RSpec.describe Kanrisuru::Core::Group do
21
21
 
22
22
  it 'prepares create_group command' do
23
23
  expect_command(host.create_group('admin'), 'groupadd admin')
24
- expect_command(host.create_group('admin', { gid: 9000 }), 'groupadd admin -g 9000')
24
+ expect_command(host.create_group('admin',
25
+ gid: 9000,
26
+ non_unique: true
27
+ ),
28
+ 'groupadd admin -g 9000 -o'
29
+ )
30
+
31
+ expect_command(host.create_group('admin', gid: 12, system: true), 'groupadd admin -g 12 -r')
25
32
  end
26
33
 
27
34
  it 'prepares delete_group command' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kanrisuru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.12
4
+ version: 0.16.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Mammina