specinfra 2.66.1 → 2.66.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 226b32c28717bda5186b1c3fb65f2c80c865a3ac
4
- data.tar.gz: 4a3796492424897cd3d75a4e365e7e82789f9a73
3
+ metadata.gz: da11d4c8d78efcde9e37dd56889503a7837b3b3c
4
+ data.tar.gz: 04b91ce43d6b888d4739089b906a776208a6636a
5
5
  SHA512:
6
- metadata.gz: 6393d2adc36b4741a3fd1b60d2737c276bd645de873c13de9b2a7042c6b79c4f887d7078230b1e5572152f53e80e4ca721db2d2a19b52df6039a95b6eb2bf265
7
- data.tar.gz: 4aa4b0247849581e8040c8e89bddab8d56dd0fefe9720e3bb928d9090b966cfeb5ba8efb18c666720a6f71449f7328e0f6075161376b876f940d7aed5190f5db
6
+ metadata.gz: 2fb6a04e6b2327426efef5a5c651a5ea29d803764e28e941261d66c3fa8e32d0e246b276e173629b54aa05166441f73673e0fec04775c0d90bfc9aad9ece1245
7
+ data.tar.gz: 027d4403172a600b79049cace4bb9a3b9bd0fd53ed51ce049b1b01f2de6e912e42b8701f7f26f4d03655fd11f2902fecf765660550933895548eae60d96c1014
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.66.1"
2
+ VERSION = "2.66.2"
3
3
  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.66.1
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-03 00:00:00.000000000 Z
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