specinfra 2.0.0.beta29 → 2.0.0.beta30
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: ea053126dff9d347b4852ece95ef391bbabdd19b
|
4
|
+
data.tar.gz: 60e977706ddeed671ca7fabe86d8b420cff3f987
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ae854501b96d2808b8576408451795ff2768caf0921c727443b75746bd466d250901c1b5db371a9de53576c271bb70f2ab7594d55f58916a130e2c5cdef4e01
|
7
|
+
data.tar.gz: 491a50ae31d09282ba7dc7f925681375661b6091a5e0e745760cd61917ff2cd8e20bd5923860654520db06994b7b050f7bde6ca1e1b878c97a2f4f4569d71051
|
@@ -59,14 +59,12 @@ class Specinfra::Command::Base::File < Specinfra::Command::Base
|
|
59
59
|
"grep -qF -- #{escape(expected_pattern)} #{escape(file)}"
|
60
60
|
end
|
61
61
|
|
62
|
-
def
|
63
|
-
|
64
|
-
"md5sum #{escape(file)} | grep -iw -- #{escape(regexp)}"
|
62
|
+
def get_md5sum(file)
|
63
|
+
"md5sum #{escape(file)} | cut -d ' ' -f 1"
|
65
64
|
end
|
66
65
|
|
67
|
-
def
|
68
|
-
|
69
|
-
"sha256sum #{escape(file)} | grep -iw -- #{escape(regexp)}"
|
66
|
+
def get_sha256sum(file)
|
67
|
+
"sha256sum #{escape(file)} | cut -d ' ' -f 1"
|
70
68
|
end
|
71
69
|
|
72
70
|
def get_content(file)
|
@@ -4,12 +4,12 @@ class Specinfra::Command::Darwin::Base::File < Specinfra::Command::Base::File
|
|
4
4
|
"sudo -u #{user} -s /bin/test -#{access} #{file}"
|
5
5
|
end
|
6
6
|
|
7
|
-
def
|
8
|
-
"openssl md5 #{escape(file)} | cut -d'=' -f2 | cut -c 2-
|
7
|
+
def get_md5sum(file)
|
8
|
+
"openssl md5 #{escape(file)} | cut -d'=' -f2 | cut -c 2-"
|
9
9
|
end
|
10
10
|
|
11
|
-
def
|
12
|
-
"openssl sha256 #{escape(file)} | cut -d'=' -f2 | cut -c 2-
|
11
|
+
def get_sha256sum(file)
|
12
|
+
"openssl sha256 #{escape(file)} | cut -d'=' -f2 | cut -c 2-"
|
13
13
|
end
|
14
14
|
|
15
15
|
def check_is_linked_to(link, target)
|
@@ -1,13 +1,11 @@
|
|
1
1
|
class Specinfra::Command::Openbsd::Base::File < Specinfra::Command::Base::File
|
2
2
|
class << self
|
3
|
-
def
|
4
|
-
|
5
|
-
"cksum -qa md5 #{escape(file)} | grep -w #{escape(regexp)}"
|
3
|
+
def get_md5sum(file)
|
4
|
+
"cksum -qa md5 #{escape(file)} | cut -d ' ' -f 1"
|
6
5
|
end
|
7
6
|
|
8
|
-
def
|
9
|
-
|
10
|
-
"cksum -qa sha256 #{escape(file)} | grep -w #{escape(regexp)}"
|
7
|
+
def get_sha256sum(file)
|
8
|
+
"cksum -qa sha256 #{escape(file)} | cut -d ' ' -f 1"
|
11
9
|
end
|
12
10
|
|
13
11
|
def check_is_linked_to(link, target)
|
@@ -30,8 +30,8 @@ class Specinfra::Command::Solaris::V10::File < Specinfra::Command::Solaris::Base
|
|
30
30
|
"grep -- #{escape(expected_pattern)} #{escape(file)}"
|
31
31
|
end
|
32
32
|
|
33
|
-
def
|
34
|
-
"digest -a md5 -v #{escape(file)} |
|
33
|
+
def get_md5sum(file)
|
34
|
+
"digest -a md5 -v #{escape(file)} | cut -d '=' -f 2 | cut -c 2-"
|
35
35
|
end
|
36
36
|
|
37
37
|
# reference: http://perldoc.perl.org/functions/stat.html
|
data/lib/specinfra/version.rb
CHANGED