pdqtest 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pdqtest/emoji.rb +8 -0
- data/lib/pdqtest/puppet.rb +0 -10
- data/lib/pdqtest/rspec.rb +2 -0
- data/lib/pdqtest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73b4ef4b5656deafb7ea66e3d57e4c8e9fbf7695
|
4
|
+
data.tar.gz: 2357142c82becd393bd9f2ad78a6e97bcb219484
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d607b6d78f8bce122c380ededfd8482a13ecad8f7c64b3382b95b0c43de5ab4f1e3d10200d28bb20cdfad6f8e238d26dd69d71bd644a150a9214b02e010ce55f
|
7
|
+
data.tar.gz: 29fabf913bcb34da1eb7bcd06c75613fc98470cec9fb40053d5e7e61f5a3a9e5f4462801c6baa0d3b11e84476a860d4b0e882d1ff73c6424b0158e1bd67a87e6
|
data/lib/pdqtest/emoji.rb
CHANGED
@@ -6,6 +6,14 @@ module PDQTest
|
|
6
6
|
@@disable = disable
|
7
7
|
end
|
8
8
|
|
9
|
+
# Print a message prefixed with optional emoji to the STDOUT logger
|
10
|
+
def self.emoji_message(emoji, message)
|
11
|
+
if ! @@disabled
|
12
|
+
message = emoji + message
|
13
|
+
end
|
14
|
+
Escort::Logger.output.puts message
|
15
|
+
end
|
16
|
+
|
9
17
|
# print cool emoji based on status
|
10
18
|
def self.emoji_status(status, emoji_pass, emoji_fail, label)
|
11
19
|
lable_string = "#{label}: "
|
data/lib/pdqtest/puppet.rb
CHANGED
@@ -64,16 +64,6 @@ module PDQTest
|
|
64
64
|
"mkdir -p /etc/facter/ && ln -s #{PDQTest::Instance::TEST_DIR}/spec/merge_facts /etc/facter/facts.d"
|
65
65
|
end
|
66
66
|
|
67
|
-
def self.install_deps
|
68
|
-
# Install dependencies for module
|
69
|
-
steps = []
|
70
|
-
steps << "cd #{PDQTest::Instance::TEST_DIR}"
|
71
|
-
steps << "librarian-puppet install --path #{MODULE_DIR} --destructive"
|
72
|
-
steps + git_fixtures
|
73
|
-
|
74
|
-
steps.join(' && ')
|
75
|
-
end
|
76
|
-
|
77
67
|
def self.class2filename(c)
|
78
68
|
if c == module_name
|
79
69
|
f = "#{MANIFESTS_DIR}/init.pp"
|
data/lib/pdqtest/rspec.rb
CHANGED
@@ -10,6 +10,8 @@ module PDQTest
|
|
10
10
|
SPEC_CLASSES_DIR = "#{SPEC_DIR}/classes"
|
11
11
|
|
12
12
|
def self.run
|
13
|
+
Escort::Logger.output.puts
|
14
|
+
PDQTest::Emoji.emoji_message("🐌", "I'm downloading The Internet, please hold...")
|
13
15
|
cmd = "bundle exec librarian-puppet install --path ./spec/fixtures/modules --destructive"
|
14
16
|
status = system(cmd)
|
15
17
|
if status
|
data/lib/pdqtest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdqtest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geoff Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|