simp-rake-helpers 1.0.9 → 1.0.10
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/.rspec +1 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile +12 -1
- data/README.md +91 -7
- data/lib/simp/rake/helpers.rb +1 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93def8d379879e106ff6d75e7824a955e62801a1
|
4
|
+
data.tar.gz: b1e7d9ac4a46ed7687ecbebcf27cac3d0c98248a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07e7d770569a585dbd70a1036d95c02066999e20adbd5a8d525e45891b6ff8cbe84f23d7ceeaaa726a623b2341b15f858064cadf745a366b05cc4335f668db7d
|
7
|
+
data.tar.gz: 02c7c7d0dd9dd45b6223016079f8a88cbd6511c44b8709700047d4e1d65819ab755426af3f38388e5ceeed8ac97ab22f1e08d3d1c68c68425f0688e271dedde3
|
data/.rspec
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
-
|
1
|
+
# Variables:
|
2
|
+
#
|
3
|
+
# SIMP_GEM_SERVERS | a space/comma delimited list of rubygem servers
|
4
|
+
# PUPPET_VERSION | specifies the version of the puppet gem to load
|
5
|
+
puppetversion = ENV.key?('PUPPET_VERSION') ? "#{ENV['PUPPET_VERSION']}" : false
|
6
|
+
gem_sources = ENV.key?('SIMP_GEM_SERVERS') ? ENV['SIMP_GEM_SERVERS'].split(/[, ]+/) : ['https://rubygems.org']
|
7
|
+
|
8
|
+
gem_sources.each { |gem_source| source gem_source }
|
2
9
|
|
3
10
|
gemspec
|
11
|
+
|
12
|
+
if puppetversion
|
13
|
+
gem 'puppet', puppetversion
|
14
|
+
end
|
data/README.md
CHANGED
@@ -1,27 +1,111 @@
|
|
1
1
|
# simp-rake-helpers
|
2
|
+
[](http://www.apache.org/licenses/LICENSE-2.0.html) [](https://travis-ci.org/simp/rubygems-simp-rake-helpers)
|
2
3
|
|
4
|
+
|
5
|
+
## Work in Progress
|
6
|
+
|
7
|
+
Please excuse us as we transition this code into the public domain.
|
8
|
+
|
9
|
+
Downloads, discussion, and patches are still welcome!
|
3
10
|
Common helper methods for SIMP Rakefiles
|
4
11
|
|
5
|
-
|
12
|
+
#### Table of Contents
|
13
|
+
|
14
|
+
1. [Overview](#overview)
|
15
|
+
* [This gem is part of SIMP](#this-gem-is-part-of-simp)
|
16
|
+
* [Features](#features)
|
17
|
+
2. [Setup - The basics of getting started with iptables](#setup)
|
18
|
+
3. [Usage - Configuration options and additional functionality](#usage)
|
19
|
+
4. [Reference - An under-the-hood peek at what the gem is doing and how](#reference)
|
20
|
+
5. [Limitations - OS compatibility, etc.](#limitations)
|
21
|
+
6. [Development - Guide for contributing to the module](#development)
|
22
|
+
* [License](#license)
|
23
|
+
* [History](#history)
|
24
|
+
|
25
|
+
|
26
|
+
## Overview
|
27
|
+
The `simp-rake-helpers` gem provides common Rake tasks to support the SIMP build process.
|
28
|
+
|
29
|
+
|
30
|
+
### This gem is part of SIMP
|
31
|
+
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/).
|
32
|
+
|
33
|
+
|
34
|
+
### Features
|
6
35
|
* supports multithreaded mock operations
|
36
|
+
* RPM packaging and signing
|
37
|
+
|
38
|
+
|
39
|
+
## Setup
|
40
|
+
Within a project's Gemfile:
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
gem 'simp-rake-helpers'
|
44
|
+
```
|
7
45
|
|
8
46
|
|
9
47
|
## Usage
|
48
|
+
Within a project's Rakefile:
|
49
|
+
|
10
50
|
```ruby
|
11
51
|
require 'simp/rake/helpers'
|
12
52
|
```
|
13
53
|
|
14
|
-
|
15
|
-
|
54
|
+
To see the extra rake tasks:
|
55
|
+
|
56
|
+
```sh
|
57
|
+
bunde exec rake -T
|
58
|
+
```
|
59
|
+
|
60
|
+
## Reference
|
61
|
+
|
62
|
+
### simp/rake/rpm
|
63
|
+
|
64
|
+
#### rake pkg:rpm[chroot,unique,snapshot_release]
|
65
|
+
Builds an RPM to package the current SIMP project.
|
66
|
+
|
67
|
+
**NOTE**: Building RPMs requires a working Mock setup (http://fedoraproject.org/wiki/Projects/Mock)
|
68
|
+
|
69
|
+
##### Parameters
|
70
|
+
|
71
|
+
* **:chroot** - The Mock chroot configuration to use. See the '--root' option in mock(1)."
|
72
|
+
* **:unique** - Whether or not to build the RPM in a unique Mock environment. This can be very useful for parallel builds of all modules.
|
73
|
+
* **:snapshot_release** - Add snapshot_release (date and time) to rpm version. Rpm spec file must have macro for this to work.
|
74
|
+
|
75
|
+
|
76
|
+
#### rake pkg:scrub[chroot,unique]
|
77
|
+
|
78
|
+
Scrub the current SIMP project's mock build directory.
|
79
|
+
|
80
|
+
|
81
|
+
#### rake pkg:srpm[chroot,unique,snapshot_release]
|
82
|
+
Build the pupmod-simp-iptables SRPM. Building RPMs requires a working Mock setup (http://fedoraproject.org/wiki/Projects/Mock)
|
83
|
+
|
84
|
+
**NOTE**: Building RPMs requires a working Mock setup (http://fedoraproject.org/wiki/Projects/Mock)
|
85
|
+
|
86
|
+
##### Parameters
|
87
|
+
|
88
|
+
* **:chroot** - The Mock chroot configuration to use. See the '--root' option in mock(1)."
|
89
|
+
* **:unique** - Whether or not to build the SRPM in a unique Mock environment. This can be very useful for parallel builds of all modules.
|
90
|
+
* **:snapshot_release** - Add snapshot_release (date and time) to rpm version. The RPM spec file must support macros for this to work.
|
91
|
+
|
92
|
+
#### rake pkg:tar[snapshot_release]
|
93
|
+
|
94
|
+
##### Parameters
|
95
|
+
|
96
|
+
Build the pupmod-simp-iptables tar package
|
97
|
+
* :snapshot_release - Add snapshot_release (date and time) to rpm version, rpm spec file must have macro for this to work.
|
98
|
+
|
99
|
+
## Limitations
|
16
100
|
|
17
101
|
|
18
|
-
##
|
19
|
-
* sudo gem install simp-rake-helpers
|
102
|
+
## Development
|
20
103
|
|
104
|
+
Please see the [SIMP Contribution Guidelines](https://simp-project.atlassian.net/wiki/display/SD/Contributing+to+SIMP).
|
21
105
|
|
22
|
-
|
106
|
+
### License
|
23
107
|
See [LICENSE](LICENSE)
|
24
108
|
|
25
109
|
|
26
|
-
|
110
|
+
### History
|
27
111
|
See [CHANGELOG.md](CHANGELOG.md)
|
data/lib/simp/rake/helpers.rb
CHANGED
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.0.
|
4
|
+
version: 1.0.10
|
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: 2015-07-
|
12
|
+
date: 2015-07-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -57,14 +57,14 @@ dependencies:
|
|
57
57
|
name: puppet
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - '>='
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '3'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - '>='
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '3'
|
70
70
|
- !ruby/object:Gem::Dependency
|
@@ -260,7 +260,7 @@ homepage: https://github.com/simp/rubygem-simp-rake-helpers
|
|
260
260
|
licenses:
|
261
261
|
- Apache-2.0
|
262
262
|
metadata:
|
263
|
-
issue_tracker: https://
|
263
|
+
issue_tracker: https://simp-project.atlassian.net
|
264
264
|
post_install_message:
|
265
265
|
rdoc_options: []
|
266
266
|
require_paths:
|