specinfra 2.66.1 → 2.66.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specinfra/command.rb +1 -0
- data/lib/specinfra/command/freebsd/base/group.rb +14 -0
- data/lib/specinfra/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da11d4c8d78efcde9e37dd56889503a7837b3b3c
|
4
|
+
data.tar.gz: 04b91ce43d6b888d4739089b906a776208a6636a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fb6a04e6b2327426efef5a5c651a5ea29d803764e28e941261d66c3fa8e32d0e246b276e173629b54aa05166441f73673e0fec04775c0d90bfc9aad9ece1245
|
7
|
+
data.tar.gz: 027d4403172a600b79049cace4bb9a3b9bd0fd53ed51ce049b1b01f2de6e912e42b8701f7f26f4d03655fd11f2902fecf765660550933895548eae60d96c1014
|
data/lib/specinfra/command.rb
CHANGED
@@ -230,6 +230,7 @@ require 'specinfra/command/sles/v12/service'
|
|
230
230
|
require 'specinfra/command/freebsd'
|
231
231
|
require 'specinfra/command/freebsd/base'
|
232
232
|
require 'specinfra/command/freebsd/base/file'
|
233
|
+
require 'specinfra/command/freebsd/base/group'
|
233
234
|
require 'specinfra/command/freebsd/base/host'
|
234
235
|
require 'specinfra/command/freebsd/base/interface'
|
235
236
|
require 'specinfra/command/freebsd/base/inventory'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class Specinfra::Command::Freebsd::Base::Group < Specinfra::Command::Base::Group
|
2
|
+
class << self
|
3
|
+
def update_gid(group, gid)
|
4
|
+
"pw groupmod #{escape(group)} -g #{escape(gid)}"
|
5
|
+
end
|
6
|
+
|
7
|
+
def add(group, options)
|
8
|
+
command = %w[pw group add]
|
9
|
+
command << '-g' << escape(options[:gid]) if options[:gid]
|
10
|
+
command << escape(group)
|
11
|
+
command.join(' ')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/specinfra/version.rb
CHANGED
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.66.
|
4
|
+
version: 2.66.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-scp
|
@@ -292,6 +292,7 @@ files:
|
|
292
292
|
- lib/specinfra/command/freebsd.rb
|
293
293
|
- lib/specinfra/command/freebsd/base.rb
|
294
294
|
- lib/specinfra/command/freebsd/base/file.rb
|
295
|
+
- lib/specinfra/command/freebsd/base/group.rb
|
295
296
|
- lib/specinfra/command/freebsd/base/host.rb
|
296
297
|
- lib/specinfra/command/freebsd/base/interface.rb
|
297
298
|
- lib/specinfra/command/freebsd/base/inventory.rb
|