specinfra 2.77.0 → 2.77.1

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: c816e2175462978667dc1b11577c5cba4676f374
4
- data.tar.gz: cbd32cff99844fea12f52d1e739b6cc246e12935
3
+ metadata.gz: 5a0543b6f4a0704e18795bce89aef8a8e051b89a
4
+ data.tar.gz: 3bdfd61793780402c8de4f5d0fa3be4633cdafeb
5
5
  SHA512:
6
- metadata.gz: 68670a9e09aeb1e4f0aaf42b3bcad219769313e8acd556765311d0bb6b35a0be4b5785c7f2fcc24f5aea74c8a1d834e7d46bf9eef8de310144e0556f453cfc21
7
- data.tar.gz: 38b9be7f4d733740f8353ef79b3e2267ccfda81cd60ea4402a2401767a5d3c6f56dd905a168cffced369792cfed9f833a3851175b9038587f8bc8b68cad382a7
6
+ metadata.gz: 410a035509d3405097f728637b81b00b25388cbdb6a24cc732ddf7ec8b07d0235a995076ce6a83990789f3d47fd0a9f4b3e93bf454974c48951733c745633e69
7
+ data.tar.gz: 9c58c6e6fe4c4944a848c7b52c60a5237e63b8579b26cc1b62bda65931aa120411cc5d256523c4ee9e60681e0c2c08f086c5934ae615b469ac03ca3f93ad61df
@@ -241,6 +241,8 @@ require 'specinfra/command/opensuse/base/service'
241
241
  require 'specinfra/command/sles'
242
242
  require 'specinfra/command/sles/base'
243
243
  require 'specinfra/command/sles/base/service'
244
+ require 'specinfra/command/sles/v11'
245
+ require 'specinfra/command/sles/v11/user'
244
246
  require 'specinfra/command/sles/v12'
245
247
  require 'specinfra/command/sles/v12/service'
246
248
 
@@ -332,6 +334,10 @@ require 'specinfra/command/solaris/v10/host'
332
334
  require 'specinfra/command/solaris/v10/package'
333
335
  require 'specinfra/command/solaris/v10/user'
334
336
 
337
+ # Solaris 11 (inherit Solaris)
338
+ require 'specinfra/command/solaris/v11'
339
+ require 'specinfra/command/solaris/v11/user'
340
+
335
341
  # SmartOS (inherit Solaris)
336
342
  require 'specinfra/command/smartos'
337
343
  require 'specinfra/command/smartos/base'
@@ -0,0 +1,2 @@
1
+ class Specinfra::Command::Sles::V11 < Specinfra::Command::Sles::Base
2
+ end
@@ -0,0 +1,11 @@
1
+ class Specinfra::Command::Sles::V11::User < Specinfra::Command::Sles::Base::User
2
+ class << self
3
+ def get_minimum_days_between_password_change(user)
4
+ "chage -l #{escape(user)} | sed -n 's/^Minimum://p' | sed 's|^[[:blank:]]*||g'"
5
+ end
6
+
7
+ def get_maximum_days_between_password_change(user)
8
+ "chage -l #{escape(user)} | sed -n 's/^Maximum://p' | sed 's|^[[:blank:]]*||g'"
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,2 @@
1
+ class Specinfra::Command::Solaris::V11 < Specinfra::Command::Solaris::Base
2
+ end
@@ -0,0 +1,11 @@
1
+ class Specinfra::Command::Solaris::V11::User < Specinfra::Command::Solaris::Base::User
2
+ class << self
3
+ def get_minimum_days_between_password_change(user)
4
+ "passwd -s #{escape(user)} | sed 's/ \\{1,\\}/%/g' | tr '%' '\n' | sed '4q;d'"
5
+ end
6
+
7
+ def get_maximum_days_between_password_change(user)
8
+ "passwd -s #{escape(user)} | sed 's/ \\{1,\\}/%/g' | tr '%' '\n' | sed '5q;d'"
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.77.0"
2
+ VERSION = "2.77.1"
3
3
  end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ property[:os] = nil
4
+ set :os, :family => 'sles', :release => '11'
5
+
6
+ describe get_command(:get_user_minimum_days_between_password_change, 'foo') do
7
+ it { should eq "chage -l foo | sed -n 's/^Minimum://p' | sed 's|^[[:blank:]]*||g'" }
8
+ end
9
+
10
+ describe get_command(:get_user_maximum_days_between_password_change, 'foo') do
11
+ it { should eq "chage -l foo | sed -n 's/^Maximum://p' | sed 's|^[[:blank:]]*||g'" }
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ property[:os] = nil
4
+ set :os, :family => 'solaris', :release => '11'
5
+
6
+ describe get_command(:get_user_minimum_days_between_password_change, 'foo') do
7
+ it { should eq "passwd -s foo | sed 's/ \\{1,\\}/%/g' | tr '%' '\n' | sed '4q;d'" }
8
+ end
9
+
10
+ describe get_command(:get_user_maximum_days_between_password_change, 'foo') do
11
+ it { should eq "passwd -s foo | sed 's/ \\{1,\\}/%/g' | tr '%' '\n' | sed '5q;d'" }
12
+ 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.77.0
4
+ version: 2.77.1
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-03-27 00:00:00.000000000 Z
11
+ date: 2019-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp
@@ -368,6 +368,8 @@ files:
368
368
  - lib/specinfra/command/sles.rb
369
369
  - lib/specinfra/command/sles/base.rb
370
370
  - lib/specinfra/command/sles/base/service.rb
371
+ - lib/specinfra/command/sles/v11.rb
372
+ - lib/specinfra/command/sles/v11/user.rb
371
373
  - lib/specinfra/command/sles/v12.rb
372
374
  - lib/specinfra/command/sles/v12/service.rb
373
375
  - lib/specinfra/command/smartos.rb
@@ -396,6 +398,8 @@ files:
396
398
  - lib/specinfra/command/solaris/v10/host.rb
397
399
  - lib/specinfra/command/solaris/v10/package.rb
398
400
  - lib/specinfra/command/solaris/v10/user.rb
401
+ - lib/specinfra/command/solaris/v11.rb
402
+ - lib/specinfra/command/solaris/v11/user.rb
399
403
  - lib/specinfra/command/suse.rb
400
404
  - lib/specinfra/command/suse/base.rb
401
405
  - lib/specinfra/command/suse/base/package.rb
@@ -554,7 +558,9 @@ files:
554
558
  - spec/command/redhat7/interface_spec.rb
555
559
  - spec/command/redhat7/port_spec.rb
556
560
  - spec/command/redhat7/service_spec.rb
561
+ - spec/command/sles11/user_spec.rb
557
562
  - spec/command/sles15/service_spec.rb
563
+ - spec/command/solaris11/user_spec.rb
558
564
  - spec/command/ubuntu/ppa_spec.rb
559
565
  - spec/command/windows/registry_key_spec.rb
560
566
  - spec/command/windows/service_spec.rb
@@ -685,7 +691,9 @@ test_files:
685
691
  - spec/command/redhat7/interface_spec.rb
686
692
  - spec/command/redhat7/port_spec.rb
687
693
  - spec/command/redhat7/service_spec.rb
694
+ - spec/command/sles11/user_spec.rb
688
695
  - spec/command/sles15/service_spec.rb
696
+ - spec/command/solaris11/user_spec.rb
689
697
  - spec/command/ubuntu/ppa_spec.rb
690
698
  - spec/command/windows/registry_key_spec.rb
691
699
  - spec/command/windows/service_spec.rb