simp-beaker-helpers 1.5.3 → 1.5.4
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/simp/beaker_helpers.rb +15 -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: d1683b69319f69fd99462fe7f9da0526293fba0b
|
|
4
|
+
data.tar.gz: 04f44fbd87c2720e42f0154b4b12b530226759fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a9a4ae1b974bae8659f4b5604e682552f0e9e0cf4cc90f4c57e50ca8e51838d4083c706f0c7015d650653978f64b1601c29a300e4a268ec63d3f5688138db44
|
|
7
|
+
data.tar.gz: e604bf594bcbe38689eb0af83c033aeacf58e70f3d4d8fbb2c553c6227037f35f5ee3b7bb2fe28cf1538a6dc5e192d41a3faa1a5d24b51f5e9e60f6578abe16f
|
data/lib/simp/beaker_helpers.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Simp; end
|
|
2
2
|
|
|
3
3
|
module Simp::BeakerHelpers
|
|
4
|
-
VERSION = '1.5.
|
|
4
|
+
VERSION = '1.5.4'
|
|
5
5
|
|
|
6
6
|
# use the `puppet fact` face to look up facts on an SUT
|
|
7
7
|
def pfact_on(sut, fact_name)
|
|
@@ -10,6 +10,20 @@ module Simp::BeakerHelpers
|
|
|
10
10
|
facts.fetch(fact_name)
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Return the path to the 'spec/fixtures' directory
|
|
14
|
+
def fixtures_path
|
|
15
|
+
STDERR.puts ' ** fixtures_path' if ENV['BEAKER_helpers_verbose']
|
|
16
|
+
dir = RSpec.configuration.default_path
|
|
17
|
+
dir = File.join('.', 'spec') unless dir
|
|
18
|
+
|
|
19
|
+
dir = File.join(File.expand_path(dir), 'fixtures')
|
|
20
|
+
|
|
21
|
+
if File.directory?(dir)
|
|
22
|
+
return dir
|
|
23
|
+
else
|
|
24
|
+
raise("Could not find fixtures directory at '#{dir}'")
|
|
25
|
+
end
|
|
26
|
+
end
|
|
13
27
|
|
|
14
28
|
# Locates .fixture.yml in or above this directory.
|
|
15
29
|
def fixtures_yml_path
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simp-beaker-helpers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Tessmer
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-07-
|
|
12
|
+
date: 2016-07-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: beaker
|