specinfra 2.36.5 → 2.36.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e1fdbed94bf68c8fb2084c034c50642115b2d3a
|
4
|
+
data.tar.gz: 3d8e2e16196c7c8358b39f08b51078ca2d707e2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff063b8214d627bd27102aaaa2eca8c918f8ab16ffec488e01075ca2293b2238385d39ba52c3fc833fdf546f2b903cf328afe35efdbb0130789e7cd7b306dcb3
|
7
|
+
data.tar.gz: 12e82cdca80594973d621bb6dd97cdbb3fbd6e48e061d5c4d772b2a658f2fec264866e1d0d511fae39c05fef66f7bdac9af066f37b92b785976d063157d3b450
|
@@ -35,5 +35,13 @@ class Specinfra::Command::Openbsd::Base::File < Specinfra::Command::Base::File
|
|
35
35
|
def get_mode(file)
|
36
36
|
"stat -f%Lp #{escape(file)}"
|
37
37
|
end
|
38
|
+
|
39
|
+
def get_mtime(file)
|
40
|
+
"stat -f %m #{escape(file)}"
|
41
|
+
end
|
42
|
+
|
43
|
+
def get_size(file)
|
44
|
+
"stat -f %z #{escape(file)}"
|
45
|
+
end
|
38
46
|
end
|
39
47
|
end
|
data/lib/specinfra/version.rb
CHANGED
@@ -77,3 +77,11 @@ end
|
|
77
77
|
describe get_command(:check_file_exists, '/tmp') do
|
78
78
|
it { should eq 'test -e /tmp' }
|
79
79
|
end
|
80
|
+
|
81
|
+
describe get_command(:get_file_mtime, '/tmp') do
|
82
|
+
it { should eq 'stat -c %Y /tmp' }
|
83
|
+
end
|
84
|
+
|
85
|
+
describe get_command(:get_file_size, '/tmp') do
|
86
|
+
it { should eq 'stat -c %s /tmp' }
|
87
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
property[:os] = nil
|
4
|
+
set :os, :family => 'openbsd'
|
5
|
+
|
6
|
+
describe get_command(:get_file_mtime, '/tmp') do
|
7
|
+
it { should eq 'stat -f %m /tmp' }
|
8
|
+
end
|
9
|
+
|
10
|
+
describe get_command(:get_file_size, '/tmp') do
|
11
|
+
it { should eq 'stat -f %z /tmp' }
|
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.36.
|
4
|
+
version: 2.36.6
|
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-06-
|
11
|
+
date: 2015-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -423,6 +423,7 @@ files:
|
|
423
423
|
- spec/command/module/service/systemd_spec.rb
|
424
424
|
- spec/command/module/systemd_spec.rb
|
425
425
|
- spec/command/module/zfs_spec.rb
|
426
|
+
- spec/command/openbsd/file_spec.rb
|
426
427
|
- spec/command/redhat/interface_spec.rb
|
427
428
|
- spec/command/redhat/package_spec.rb
|
428
429
|
- spec/command/redhat/service_spec.rb
|
@@ -494,6 +495,7 @@ test_files:
|
|
494
495
|
- spec/command/module/service/systemd_spec.rb
|
495
496
|
- spec/command/module/systemd_spec.rb
|
496
497
|
- spec/command/module/zfs_spec.rb
|
498
|
+
- spec/command/openbsd/file_spec.rb
|
497
499
|
- spec/command/redhat/interface_spec.rb
|
498
500
|
- spec/command/redhat/package_spec.rb
|
499
501
|
- spec/command/redhat/service_spec.rb
|