simp-rake-helpers 1.2.0 → 1.2.1
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 +8 -8
- data/README.md +27 -4
- data/lib/simp/rake/build/auto.rb +7 -4
- data/lib/simp/rake/helpers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODk1NjE0ZDMwY2E2YzkxODJhN2M0MTBmOGMzZjJmYzNjNmYxM2NhOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MWQwOTA1NjEzZTEwZjEwOGMxYzU3MjA1MjY1MjJkYTZlMzZkZjI4MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjUzOWYxZWMyZmFiMmQxOWRhNDU0ZjcwYjgzZGZmNDdiMzg5N2RhNWZiMmNh
|
10
|
+
MDY3ZmE4NWYwN2ExZDE2YTEwZjQ2MmIyMWE2ZTY2NzUwZDA0NTA0ODVhOTYy
|
11
|
+
YjhmMzM5YzM3MGFmYTVmNzc5Yzg0NTNlZDliZjI2ZDdlZGM5OTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODExOWRjNjQxMGQxNWNhNTQxNjUxMmNkMjBiNTE4ODlmMjc2NmUwYzg2NDdi
|
14
|
+
MGI0ZTgyMGUwZWRkMTk1MGU2ZDMwNDVhMzBmMTBjODU0NjdiZjE3YmNhZDdm
|
15
|
+
YTE1OTZjOTUxNDNhN2Q5NmU2YjBjNGI0ZWExM2UxOGVlNzZhNjA=
|
data/README.md
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
* [This gem is part of SIMP](#this-gem-is-part-of-simp)
|
8
8
|
* [Features](#features)
|
9
9
|
2. [Setup - The basics of getting started with iptables](#setup)
|
10
|
+
* [Gemfile](#gemfile)
|
10
11
|
3. [Usage - Configuration options and additional functionality](#usage)
|
11
12
|
* [In a Puppet Module](#in-a-puppet-module)
|
12
13
|
* [In a Ruby Gem](#in-a-ruby-gem)
|
@@ -20,7 +21,6 @@
|
|
20
21
|
## Overview
|
21
22
|
The `simp-rake-helpers` gem provides common Rake tasks to support the SIMP build process.
|
22
23
|
|
23
|
-
|
24
24
|
### This gem is part of SIMP
|
25
25
|
This gem is part of (the build tooling for) the [System Integrity Management Platform](https://github.com/NationalSecurityAgency/SIMP), a compliance-management framework built on [Puppet](https://puppetlabs.com/).
|
26
26
|
|
@@ -31,10 +31,34 @@ This gem is part of (the build tooling for) the [System Integrity Management Pla
|
|
31
31
|
|
32
32
|
|
33
33
|
## Setup
|
34
|
-
|
34
|
+
|
35
|
+
### Gemfile
|
35
36
|
|
36
37
|
```ruby
|
37
|
-
|
38
|
+
# Variables:
|
39
|
+
#
|
40
|
+
# SIMP_GEM_SERVERS | a space/comma delimited list of rubygem servers
|
41
|
+
# PUPPET_VERSION | specifies the version of the puppet gem to load
|
42
|
+
puppetversion = ENV.key?('PUPPET_VERSION') ? "#{ENV['PUPPET_VERSION']}" : '~>3'
|
43
|
+
gem_sources = ENV.key?('SIMP_GEM_SERVERS') ? ENV['SIMP_GEM_SERVERS'].split(/[, ]+/) : ['https://rubygems.org']
|
44
|
+
|
45
|
+
gem_sources.each { |gem_source| source gem_source }
|
46
|
+
|
47
|
+
group :test do
|
48
|
+
gem 'puppet', puppetversion
|
49
|
+
|
50
|
+
# Something in the test suites has issues with Hiera 3.1+
|
51
|
+
# See https://tickets.puppetlabs.com/browse/HI-505
|
52
|
+
gem 'hiera', '~> 3.0.0'
|
53
|
+
|
54
|
+
# simp-rake-helpers does not suport puppet 2.7.X
|
55
|
+
if "#{ENV['PUPPET_VERSION']}".scan(/\d+/).first != '2' &&
|
56
|
+
# simp-rake-helpers and ruby 1.8.7 bomb Travis tests
|
57
|
+
# TODO: fix upstream deps (parallel in simp-rake-helpers)
|
58
|
+
RUBY_VERSION.sub(/\.\d+$/,'') != '1.8'
|
59
|
+
gem 'simp-rake-helpers'
|
60
|
+
end
|
61
|
+
end
|
38
62
|
```
|
39
63
|
|
40
64
|
|
@@ -49,7 +73,6 @@ Simp::Rake::Pupmod::Helpers.new(File.dirname(__FILE__))
|
|
49
73
|
```
|
50
74
|
|
51
75
|
|
52
|
-
|
53
76
|
### In a Ruby Gem
|
54
77
|
Within the project's Rakefile:
|
55
78
|
|
data/lib/simp/rake/build/auto.rb
CHANGED
@@ -222,11 +222,14 @@ module Simp::Rake::Build
|
|
222
222
|
puts " (skip with `SIMP_BUILD_unpack=no`)"
|
223
223
|
puts '='*80
|
224
224
|
puts
|
225
|
+
|
226
|
+
Dir.glob( File.join(staging_dir, "#{target_data['flavor']}*/") ).each do |f|
|
227
|
+
FileUtils.rm_f( f , :verbose => verbose )
|
228
|
+
end
|
229
|
+
|
225
230
|
target_data['isos'].each do |iso|
|
226
|
-
puts "---- rake unpack[#{iso}]"
|
227
|
-
|
228
|
-
FileUtils.rm_f( f , :verbose => verbose )
|
229
|
-
end
|
231
|
+
puts "---- rake unpack[#{iso},#{do_merge},#{Dir.pwd},isoinfo,#{target_data['os_version']}]"
|
232
|
+
Rake::Task['unpack'].reenable
|
230
233
|
Rake::Task['unpack'].invoke(iso,do_merge,Dir.pwd,'isoinfo',target_data['os_version'])
|
231
234
|
end
|
232
235
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simp-rake-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
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-03-
|
12
|
+
date: 2016-03-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|