specinfra 2.79.0 → 2.80.0

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
  SHA1:
3
- metadata.gz: afc22c3532ecda9e643a95e94bac7e0e974e7b9e
4
- data.tar.gz: 4839b3aaeb660b1a3e291d69a7c3adf07e528e82
3
+ metadata.gz: c8d0e4faade38fa3aa500bd8682dbc261fa7f568
4
+ data.tar.gz: 1a3aed9b7fdb66048e31b0dce53c0056b697efb4
5
5
  SHA512:
6
- metadata.gz: a54e500e1a91766181b1a780a2f04de85fca3b6724249dfc9b0043556439c9f8e678fa335728e7f56c9f646f4fc83123bfad4599614d25258430863848efcb1b
7
- data.tar.gz: e2d497d63638869e70625ce4cfab74c42a49f5ab29983ddaa1b26bea18914ead2faff74df938445b21a6f0192bcb40e92ae8f85448a4f5b262243fe725aa7434
6
+ metadata.gz: e0ec48e0126fad8c4448ff22dd613b961ff76c239f9169621a76679dbb9becd6cd56202ebcd3736e6740f97837f8dde7e831dce4a7392cfb9be9b4efc20ef49e
7
+ data.tar.gz: 50bdc7278dd4d467f3affc2fb45f050b3077e2d9a707b43bf4ec2ffa50818af99a03e5eede7a076ebf137c7977af821128ccce2967da5fe4242ba1c47a2bf741
@@ -19,6 +19,7 @@ class Specinfra::Command::Base::Group < Specinfra::Command::Base
19
19
  def add(group, options)
20
20
  command = ['groupadd']
21
21
  command << '-g' << escape(options[:gid]) if options[:gid]
22
+ command << '-r' if options[:system_group]
22
23
  command << escape(group)
23
24
  command.join(' ')
24
25
  end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.79.0"
2
+ VERSION = "2.80.0"
3
3
  end
@@ -14,3 +14,6 @@ describe get_command(:add_group, 'foo', :gid => 1234) do
14
14
  it { should eq 'groupadd -g 1234 foo' }
15
15
  end
16
16
 
17
+ describe get_command(:add_group, 'foo', :system_group => true) do
18
+ it { should eq 'groupadd -r foo' }
19
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.79.0
4
+ version: 2.80.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-16 00:00:00.000000000 Z
11
+ date: 2019-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp