puppet_litmus 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE +201 -201
- data/README.md +35 -35
- data/lib/puppet_litmus.rb +15 -15
- data/lib/puppet_litmus/inventory_manipulation.rb +159 -159
- data/lib/puppet_litmus/rake_tasks.rb +445 -445
- data/lib/puppet_litmus/serverspec.rb +210 -203
- data/lib/puppet_litmus/version.rb +6 -6
- data/spec/data/inventory.yaml +16 -16
- data/spec/lib/puppet_litmus/inventory_manipulation_spec.rb +102 -102
- data/spec/lib/puppet_litmus/rake_tasks_spec.rb +55 -55
- data/spec/lib/puppet_litmus/serverspec_spec.rb +196 -196
- data/spec/lib/puppet_litmus/version_spec.rb +10 -10
- data/spec/spec_helper.rb +29 -29
- metadata +7 -7
@@ -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.7.
|
4
|
+
version: 0.7.2
|
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-07-
|
11
|
+
date: 2019-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bolt
|
@@ -111,15 +111,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.6.14.1
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Providing a simple command line tool for puppet content creators, to enable
|
118
118
|
simple and complex test deployments.
|
119
119
|
test_files:
|
120
|
-
- spec/
|
121
|
-
- spec/lib/puppet_litmus/inventory_manipulation_spec.rb
|
120
|
+
- spec/spec_helper.rb
|
122
121
|
- spec/lib/puppet_litmus/rake_tasks_spec.rb
|
123
|
-
- spec/lib/puppet_litmus/serverspec_spec.rb
|
124
122
|
- spec/lib/puppet_litmus/version_spec.rb
|
125
|
-
- spec/
|
123
|
+
- spec/lib/puppet_litmus/inventory_manipulation_spec.rb
|
124
|
+
- spec/lib/puppet_litmus/serverspec_spec.rb
|
125
|
+
- spec/data/inventory.yaml
|