specinfra 2.24.2 → 2.25.0
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 +4 -4
- data/lib/specinfra/command/linux/base/file.rb +4 -0
- data/lib/specinfra/version.rb +1 -1
- data/spec/command/linux/file_spec.rb +8 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83c057b2afe4689661eacd46887735fc2b5dd0b2
|
4
|
+
data.tar.gz: fba4b32ea8b49d36089e3cc9a76c6e3be00e1c99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea5828fa50fb9906b6116ba3d936a938c91c3cd2ecaf6687b2e1a3dc101ecf5f8b628c477e7fd825c82dcbb7e94ccda5f0e1180b55d91c36cbf71d18e6874027
|
7
|
+
data.tar.gz: 4b46c4c33eee33fffc2cb104b64cd87d3ca227fd5ad1c417f39f086c6bf2ff79d0bd9cb50026b0be6b782c0378858a3371c68aed244d0a07a64c79285d430792
|
@@ -11,5 +11,9 @@ class Specinfra::Command::Linux::Base::File < Specinfra::Command::Base::File
|
|
11
11
|
def check_attribute(file, attribute)
|
12
12
|
"lsattr -d #{escape(file)} 2>&1 | awk '$1~/^-*#{escape(attribute)}-*$/ {exit 0} {exit 1}'"
|
13
13
|
end
|
14
|
+
|
15
|
+
def get_selinuxlabel(file)
|
16
|
+
"stat -c %C #{escape(file)}"
|
17
|
+
end
|
14
18
|
end
|
15
19
|
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.
|
4
|
+
version: 2.25.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-
|
11
|
+
date: 2015-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -385,6 +385,7 @@ files:
|
|
385
385
|
- spec/command/freebsd/file_spec.rb
|
386
386
|
- spec/command/linux/bond_spec.rb
|
387
387
|
- spec/command/linux/bridge_spec.rb
|
388
|
+
- spec/command/linux/file_spec.rb
|
388
389
|
- spec/command/linux/interface_spec.rb
|
389
390
|
- spec/command/linux/inventory_spec.rb
|
390
391
|
- spec/command/linux/ip6tables_spec.rb
|
@@ -446,6 +447,7 @@ test_files:
|
|
446
447
|
- spec/command/freebsd/file_spec.rb
|
447
448
|
- spec/command/linux/bond_spec.rb
|
448
449
|
- spec/command/linux/bridge_spec.rb
|
450
|
+
- spec/command/linux/file_spec.rb
|
449
451
|
- spec/command/linux/interface_spec.rb
|
450
452
|
- spec/command/linux/inventory_spec.rb
|
451
453
|
- spec/command/linux/ip6tables_spec.rb
|