puppet_litmus 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +201 -201
- data/README.md +35 -35
- data/lib/puppet_litmus.rb +15 -15
- data/lib/puppet_litmus/inventory_manipulation.rb +203 -203
- data/lib/puppet_litmus/rake_tasks.rb +460 -460
- data/lib/puppet_litmus/serverspec.rb +228 -224
- data/lib/puppet_litmus/version.rb +6 -6
- data/spec/data/inventory.yaml +16 -16
- data/spec/lib/puppet_litmus/inventory_manipulation_spec.rb +138 -138
- data/spec/lib/puppet_litmus/rake_tasks_spec.rb +55 -55
- data/spec/lib/puppet_litmus/serverspec_spec.rb +194 -194
- data/spec/lib/puppet_litmus/version_spec.rb +10 -10
- data/spec/spec_helper.rb +29 -29
- metadata +3 -4
@@ -1,10 +1,10 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'spec_helper'
|
4
|
-
|
5
|
-
RSpec.describe PuppetLitmus do
|
6
|
-
it 'has a version number' do
|
7
|
-
expect(described_class::VERSION).not_to be nil
|
8
|
-
expect(described_class::VERSION).to be_a_kind_of(String)
|
9
|
-
end
|
10
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe PuppetLitmus do
|
6
|
+
it 'has a version number' do
|
7
|
+
expect(described_class::VERSION).not_to be nil
|
8
|
+
expect(described_class::VERSION).to be_a_kind_of(String)
|
9
|
+
end
|
10
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'rspec'
|
4
|
-
require 'puppet_litmus'
|
5
|
-
|
6
|
-
if ENV['COVERAGE'] == 'yes'
|
7
|
-
require 'simplecov'
|
8
|
-
|
9
|
-
SimpleCov.formatters = [
|
10
|
-
SimpleCov::Formatter::HTMLFormatter,
|
11
|
-
]
|
12
|
-
SimpleCov.start do
|
13
|
-
track_files 'lib/**/*.rb'
|
14
|
-
|
15
|
-
add_filter '/spec'
|
16
|
-
|
17
|
-
# do not track vendored files
|
18
|
-
add_filter '/vendor'
|
19
|
-
add_filter '/.vendor'
|
20
|
-
|
21
|
-
# do not track gitignored files
|
22
|
-
# this adds about 4 seconds to the coverage check
|
23
|
-
# this could definitely be optimized
|
24
|
-
add_filter do |f|
|
25
|
-
# system returns true if exit status is 0, which with git-check-ignore means file is ignored
|
26
|
-
system("git check-ignore --quiet #{f.filename}")
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rspec'
|
4
|
+
require 'puppet_litmus'
|
5
|
+
|
6
|
+
if ENV['COVERAGE'] == 'yes'
|
7
|
+
require 'simplecov'
|
8
|
+
|
9
|
+
SimpleCov.formatters = [
|
10
|
+
SimpleCov::Formatter::HTMLFormatter,
|
11
|
+
]
|
12
|
+
SimpleCov.start do
|
13
|
+
track_files 'lib/**/*.rb'
|
14
|
+
|
15
|
+
add_filter '/spec'
|
16
|
+
|
17
|
+
# do not track vendored files
|
18
|
+
add_filter '/vendor'
|
19
|
+
add_filter '/.vendor'
|
20
|
+
|
21
|
+
# do not track gitignored files
|
22
|
+
# this adds about 4 seconds to the coverage check
|
23
|
+
# this could definitely be optimized
|
24
|
+
add_filter do |f|
|
25
|
+
# system returns true if exit status is 0, which with git-check-ignore means file is ignored
|
26
|
+
system("git check-ignore --quiet #{f.filename}")
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet_litmus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bolt
|
@@ -110,8 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
|
-
|
114
|
-
rubygems_version: 2.7.6
|
113
|
+
rubygems_version: 3.0.4
|
115
114
|
signing_key:
|
116
115
|
specification_version: 4
|
117
116
|
summary: Providing a simple command line tool for puppet content creators, to enable
|