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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac2a8fe5df5117bb7d74fb011f0f857fb07df03e
4
- data.tar.gz: 11bc05363b086d465cd7598d17446d05a31c9d3a
3
+ metadata.gz: 73b4ef4b5656deafb7ea66e3d57e4c8e9fbf7695
4
+ data.tar.gz: 2357142c82becd393bd9f2ad78a6e97bcb219484
5
5
  SHA512:
6
- metadata.gz: 640a8be2625c579bf0a461d1c6f894d18bc339ae641afe8aafbce00dd46b8f07420ede16f6fe97388c753effdeb1cecdef681ae0fda237975ab5be5279387324
7
- data.tar.gz: 1f9775686e4b5aea26b2a7e21c7db4a6559b9fd10cac9a95c486e7f96e1927784b52f9a5a690a7a48ecc43090f651cf70dc24d029f66b5435b3dc363398e581d
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}: "
@@ -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
@@ -1,3 +1,3 @@
1
1
  module PDQTest
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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-04 00:00:00.000000000 Z
11
+ date: 2017-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler