specinfra 2.20.2 → 2.21.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: f2e4faf78e190c40ed272c748f12d9c6c37c236e
4
- data.tar.gz: 63452e674da7c7e7d175df9ac3494959da5fe585
3
+ metadata.gz: fbebb2af7385aecbd1b5d1205e703c75768974fa
4
+ data.tar.gz: 1b3f85640b685b3748c3b1ac206fe3a43b8e0da6
5
5
  SHA512:
6
- metadata.gz: b763aae9cde47b41fa6586116abdaf680f400f10703f865daa1dc8815fdf03274cacb3a3b6419aedced3f84c684b340b086229bf59a9367526c0f2636222ab93
7
- data.tar.gz: 8cfe881332abac0330b18079770127e4e605c7554d7de040d461e93b6ff7fff42ec9da87ee07b6fcae820d9e661837a5cdd2a8615adad9044296cb29740c867b
6
+ metadata.gz: a04dcb00a7e89deaa8eacb21b2510cbca3d1997c0f23954e21fc533123b237e87cd4f4f1efad4ed14804a48ee8d432fa93f9450c5b22e6f3889ae54690b061e7
7
+ data.tar.gz: 102bf6a1b015038809081a877198b97d46eed6df465d611556c7a798b0541179c26e87fa592cbf2920770b8974669fb94625dd15fc628df3fb3a5d957460ce6c
@@ -11,4 +11,8 @@ module Specinfra::Command::Module::Zfs
11
11
  end
12
12
  commands.join(' && ')
13
13
  end
14
+
15
+ def get_property(zfs)
16
+ "zfs get -Hp -o property,value all #{escape(zfs)}"
17
+ end
14
18
  end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.20.2"
2
+ VERSION = "2.21.0"
3
3
  end
@@ -0,0 +1,6 @@
1
+ require 'spec_helper'
2
+ describe Specinfra::Command::Solaris::Base::Zfs do
3
+ let(:klass) { Specinfra::Command::Solaris::Base::Zfs }
4
+ it { expect(klass.check_exists('rpool')).to eq "zfs list -H rpool" }
5
+ it { expect(klass.check_has_property('rpool', {'mountpoint' => '/rpool' })).to eq "zfs list -H -o mountpoint rpool | grep -- \\^/rpool\\$" }
6
+ 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.20.2
4
+ version: 2.21.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: 2015-03-20 00:00:00.000000000 Z
11
+ date: 2015-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -389,6 +389,7 @@ files:
389
389
  - spec/command/linux/selinux_module_spec.rb
390
390
  - spec/command/linux/selinux_spec.rb
391
391
  - spec/command/module/systemd_spec.rb
392
+ - spec/command/module/zfs_spec.rb
392
393
  - spec/command/redhat/interface_spec.rb
393
394
  - spec/command/redhat/package_spec.rb
394
395
  - spec/command/redhat/service_spec.rb
@@ -449,6 +450,7 @@ test_files:
449
450
  - spec/command/linux/selinux_module_spec.rb
450
451
  - spec/command/linux/selinux_spec.rb
451
452
  - spec/command/module/systemd_spec.rb
453
+ - spec/command/module/zfs_spec.rb
452
454
  - spec/command/redhat/interface_spec.rb
453
455
  - spec/command/redhat/package_spec.rb
454
456
  - spec/command/redhat/service_spec.rb