moose-inventory 1.0.8 → 2.0
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 +5 -5
- data/.github/workflows/ci.yml +49 -0
- data/.github/workflows/release.yml +58 -0
- data/.gitignore +1 -1
- data/.gitleaks.toml +9 -0
- data/.rubocop.yml +19 -784
- data/BACKLOG.md +290 -0
- data/Gemfile.lock +95 -0
- data/README.md +38 -9
- data/Rakefile +1 -1
- data/bin/moose-inventory +1 -1
- data/docs/release/publishing.md +109 -0
- data/docs/release/release-readiness.md +55 -0
- data/docs/security-audit-2026-05-21.md +71 -0
- data/docs/security-audit-2026-05-26-rerun.md +75 -0
- data/docs/security-audit-2026-05-26.md +63 -0
- data/lib/moose_inventory/cli/formatter.rb +16 -17
- data/lib/moose_inventory/cli/group.rb +4 -1
- data/lib/moose_inventory/cli/group_add.rb +89 -75
- data/lib/moose_inventory/cli/group_addchild.rb +84 -71
- data/lib/moose_inventory/cli/group_addhost.rb +78 -69
- data/lib/moose_inventory/cli/group_addvar.rb +37 -37
- data/lib/moose_inventory/cli/group_get.rb +23 -26
- data/lib/moose_inventory/cli/group_list.rb +12 -15
- data/lib/moose_inventory/cli/group_listvars.rb +12 -14
- data/lib/moose_inventory/cli/group_rm.rb +104 -76
- data/lib/moose_inventory/cli/group_rmchild.rb +99 -54
- data/lib/moose_inventory/cli/group_rmhost.rb +64 -60
- data/lib/moose_inventory/cli/group_rmvar.rb +5 -5
- data/lib/moose_inventory/cli/helpers.rb +76 -0
- data/lib/moose_inventory/cli/host.rb +4 -1
- data/lib/moose_inventory/cli/host_add.rb +51 -66
- data/lib/moose_inventory/cli/host_addgroup.rb +77 -68
- data/lib/moose_inventory/cli/host_addvar.rb +6 -6
- data/lib/moose_inventory/cli/host_get.rb +15 -18
- data/lib/moose_inventory/cli/host_list.rb +3 -3
- data/lib/moose_inventory/cli/host_listvars.rb +21 -23
- data/lib/moose_inventory/cli/host_rm.rb +9 -9
- data/lib/moose_inventory/cli/host_rmgroup.rb +63 -60
- data/lib/moose_inventory/cli/host_rmvar.rb +3 -3
- data/lib/moose_inventory/config/config.rb +43 -40
- data/lib/moose_inventory/db/db.rb +92 -52
- data/lib/moose_inventory/db/models.rb +11 -12
- data/lib/moose_inventory/inventory_context.rb +50 -0
- data/lib/moose_inventory/operations/add_associations.rb +127 -0
- data/lib/moose_inventory/operations/add_groups.rb +115 -0
- data/lib/moose_inventory/operations/add_hosts.rb +110 -0
- data/lib/moose_inventory/operations/group_child_relations.rb +118 -0
- data/lib/moose_inventory/operations/group_cleanup.rb +55 -0
- data/lib/moose_inventory/operations/remove_associations.rb +101 -0
- data/lib/moose_inventory/operations/remove_groups.rb +79 -0
- data/lib/moose_inventory/version.rb +1 -1
- data/moose-inventory.gemspec +38 -20
- data/scripts/check.sh +10 -0
- data/scripts/ci/check_permissions.sh +35 -0
- data/scripts/ci/check_rubocop.sh +28 -0
- data/scripts/ci/check_secrets.sh +26 -0
- data/scripts/ci/check_security.sh +68 -0
- data/scripts/ci/install_security_tools.sh +47 -0
- data/scripts/ci/package_sanity.sh +46 -0
- data/scripts/files.rb +1 -4
- data/scripts/install_dependencies.sh +19 -0
- data/scripts/reports.sh +2 -2
- data/spec/lib/moose_inventory/cli/cli_spec.rb +13 -14
- data/spec/lib/moose_inventory/cli/group_add_spec.rb +118 -119
- data/spec/lib/moose_inventory/cli/group_addchild_spec.rb +49 -51
- data/spec/lib/moose_inventory/cli/group_addhost_spec.rb +80 -83
- data/spec/lib/moose_inventory/cli/group_addvar_spec.rb +91 -91
- data/spec/lib/moose_inventory/cli/group_get_spec.rb +22 -23
- data/spec/lib/moose_inventory/cli/group_list_spec.rb +19 -20
- data/spec/lib/moose_inventory/cli/group_listvar_spec.rb +35 -36
- data/spec/lib/moose_inventory/cli/group_rm_spec.rb +115 -78
- data/spec/lib/moose_inventory/cli/group_rmchild_spec.rb +86 -45
- data/spec/lib/moose_inventory/cli/group_rmhost_spec.rb +43 -46
- data/spec/lib/moose_inventory/cli/group_rmvar_spec.rb +131 -131
- data/spec/lib/moose_inventory/cli/group_spec.rb +9 -9
- data/spec/lib/moose_inventory/cli/host_add_spec.rb +103 -43
- data/spec/lib/moose_inventory/cli/host_addgroup_spec.rb +78 -80
- data/spec/lib/moose_inventory/cli/host_addvar_spec.rb +122 -122
- data/spec/lib/moose_inventory/cli/host_get_spec.rb +16 -16
- data/spec/lib/moose_inventory/cli/host_list_spec.rb +8 -8
- data/spec/lib/moose_inventory/cli/host_listvar_spec.rb +50 -52
- data/spec/lib/moose_inventory/cli/host_rm_spec.rb +12 -12
- data/spec/lib/moose_inventory/cli/host_rmgroup_spec.rb +48 -51
- data/spec/lib/moose_inventory/cli/host_rmvar_spec.rb +136 -136
- data/spec/lib/moose_inventory/config/config_spec.rb +16 -3
- data/spec/lib/moose_inventory/db/db_spec.rb +386 -2
- data/spec/lib/moose_inventory/db/models_spec.rb +10 -11
- data/spec/lib/moose_inventory/operations/add_associations_spec.rb +77 -0
- data/spec/lib/moose_inventory/operations/add_groups_spec.rb +65 -0
- data/spec/lib/moose_inventory/operations/add_hosts_spec.rb +69 -0
- data/spec/lib/moose_inventory/operations/group_child_relations_spec.rb +76 -0
- data/spec/lib/moose_inventory/operations/remove_associations_spec.rb +78 -0
- data/spec/lib/moose_inventory/operations/remove_groups_spec.rb +57 -0
- data/spec/shared/shared_config_setup.rb +2 -2
- data/spec/spec_helper.rb +7 -8
- metadata +157 -105
- data/.coveralls.yml +0 -0
- data/Guardfile +0 -38
- data/config/dotfiles/coveralls.yml +0 -0
- data/config/dotfiles/gitignore +0 -20
- data/config/dotfiles/rubocop.yml +0 -793
- data/scripts/guard_quality.sh +0 -3
- data/scripts/guard_test.sh +0 -2
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moose-inventory
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: '2.0'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Russell Davies
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: indentation
|
|
@@ -16,238 +15,262 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0
|
|
18
|
+
version: '0'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0
|
|
25
|
+
version: '0'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: json
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
|
-
- - "
|
|
30
|
+
- - ">="
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
32
|
+
version: '2.7'
|
|
33
|
+
- - "<"
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: '3'
|
|
34
36
|
type: :runtime
|
|
35
37
|
prerelease: false
|
|
36
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
39
|
requirements:
|
|
38
|
-
- - "
|
|
40
|
+
- - ">="
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: '2.7'
|
|
43
|
+
- - "<"
|
|
39
44
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
45
|
+
version: '3'
|
|
41
46
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
47
|
+
name: mysql2
|
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
|
44
49
|
requirements:
|
|
45
|
-
- - "
|
|
50
|
+
- - ">="
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: 0.5.7
|
|
53
|
+
- - "<"
|
|
46
54
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
55
|
+
version: '0.6'
|
|
48
56
|
type: :runtime
|
|
49
57
|
prerelease: false
|
|
50
58
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
59
|
requirements:
|
|
52
|
-
- - "
|
|
60
|
+
- - ">="
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: 0.5.7
|
|
63
|
+
- - "<"
|
|
53
64
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
65
|
+
version: '0.6'
|
|
55
66
|
- !ruby/object:Gem::Dependency
|
|
56
67
|
name: pg
|
|
57
68
|
requirement: !ruby/object:Gem::Requirement
|
|
58
69
|
requirements:
|
|
59
|
-
- - "
|
|
70
|
+
- - ">="
|
|
71
|
+
- !ruby/object:Gem::Version
|
|
72
|
+
version: '1.5'
|
|
73
|
+
- - "<"
|
|
60
74
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
75
|
+
version: '2'
|
|
62
76
|
type: :runtime
|
|
63
77
|
prerelease: false
|
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
79
|
requirements:
|
|
66
|
-
- - "
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '1.5'
|
|
83
|
+
- - "<"
|
|
67
84
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
85
|
+
version: '2'
|
|
69
86
|
- !ruby/object:Gem::Dependency
|
|
70
87
|
name: sequel
|
|
71
88
|
requirement: !ruby/object:Gem::Requirement
|
|
72
89
|
requirements:
|
|
73
|
-
- - "
|
|
90
|
+
- - ">="
|
|
91
|
+
- !ruby/object:Gem::Version
|
|
92
|
+
version: '5.80'
|
|
93
|
+
- - "<"
|
|
74
94
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
95
|
+
version: '6'
|
|
76
96
|
type: :runtime
|
|
77
97
|
prerelease: false
|
|
78
98
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
99
|
requirements:
|
|
80
|
-
- - "
|
|
100
|
+
- - ">="
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '5.80'
|
|
103
|
+
- - "<"
|
|
81
104
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
105
|
+
version: '6'
|
|
83
106
|
- !ruby/object:Gem::Dependency
|
|
84
107
|
name: sqlite3
|
|
85
108
|
requirement: !ruby/object:Gem::Requirement
|
|
86
109
|
requirements:
|
|
87
|
-
- - "
|
|
110
|
+
- - ">="
|
|
88
111
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '1.
|
|
112
|
+
version: '1.7'
|
|
113
|
+
- - "<"
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: '3'
|
|
90
116
|
type: :runtime
|
|
91
117
|
prerelease: false
|
|
92
118
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
119
|
requirements:
|
|
94
|
-
- - "
|
|
120
|
+
- - ">="
|
|
95
121
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '1.
|
|
122
|
+
version: '1.7'
|
|
123
|
+
- - "<"
|
|
124
|
+
- !ruby/object:Gem::Version
|
|
125
|
+
version: '3'
|
|
97
126
|
- !ruby/object:Gem::Dependency
|
|
98
127
|
name: thor
|
|
99
128
|
requirement: !ruby/object:Gem::Requirement
|
|
100
129
|
requirements:
|
|
101
|
-
- - "
|
|
130
|
+
- - ">="
|
|
102
131
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: '
|
|
132
|
+
version: '1.3'
|
|
133
|
+
- - "<"
|
|
134
|
+
- !ruby/object:Gem::Version
|
|
135
|
+
version: '2'
|
|
104
136
|
type: :runtime
|
|
105
137
|
prerelease: false
|
|
106
138
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
139
|
requirements:
|
|
108
|
-
- - "
|
|
140
|
+
- - ">="
|
|
141
|
+
- !ruby/object:Gem::Version
|
|
142
|
+
version: '1.3'
|
|
143
|
+
- - "<"
|
|
109
144
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: '
|
|
145
|
+
version: '2'
|
|
111
146
|
- !ruby/object:Gem::Dependency
|
|
112
147
|
name: bundler
|
|
113
148
|
requirement: !ruby/object:Gem::Requirement
|
|
114
149
|
requirements:
|
|
115
|
-
- - "
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: '1.10'
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - "~>"
|
|
150
|
+
- - ">="
|
|
123
151
|
- !ruby/object:Gem::Version
|
|
124
|
-
version:
|
|
125
|
-
-
|
|
126
|
-
name: coveralls
|
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - "~>"
|
|
152
|
+
version: 2.2.33
|
|
153
|
+
- - "<"
|
|
130
154
|
- !ruby/object:Gem::Version
|
|
131
|
-
version: '
|
|
155
|
+
version: '3'
|
|
132
156
|
type: :development
|
|
133
157
|
prerelease: false
|
|
134
158
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
159
|
requirements:
|
|
136
|
-
- - "
|
|
160
|
+
- - ">="
|
|
137
161
|
- !ruby/object:Gem::Version
|
|
138
|
-
version:
|
|
139
|
-
-
|
|
140
|
-
name: hitimes
|
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
|
142
|
-
requirements:
|
|
143
|
-
- - "~>"
|
|
162
|
+
version: 2.2.33
|
|
163
|
+
- - "<"
|
|
144
164
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: '
|
|
146
|
-
type: :development
|
|
147
|
-
prerelease: false
|
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
-
requirements:
|
|
150
|
-
- - "~>"
|
|
151
|
-
- !ruby/object:Gem::Version
|
|
152
|
-
version: '1.2'
|
|
165
|
+
version: '3'
|
|
153
166
|
- !ruby/object:Gem::Dependency
|
|
154
|
-
name:
|
|
167
|
+
name: bundler-audit
|
|
155
168
|
requirement: !ruby/object:Gem::Requirement
|
|
156
169
|
requirements:
|
|
157
|
-
- - "
|
|
170
|
+
- - ">="
|
|
158
171
|
- !ruby/object:Gem::Version
|
|
159
|
-
version: '
|
|
160
|
-
|
|
161
|
-
prerelease: false
|
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
163
|
-
requirements:
|
|
164
|
-
- - "~>"
|
|
172
|
+
version: '0.9'
|
|
173
|
+
- - "<"
|
|
165
174
|
- !ruby/object:Gem::Version
|
|
166
|
-
version: '
|
|
167
|
-
- !ruby/object:Gem::Dependency
|
|
168
|
-
name: guard-rspec
|
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
|
170
|
-
requirements:
|
|
171
|
-
- - "~>"
|
|
172
|
-
- !ruby/object:Gem::Version
|
|
173
|
-
version: '4.5'
|
|
175
|
+
version: '1'
|
|
174
176
|
type: :development
|
|
175
177
|
prerelease: false
|
|
176
178
|
version_requirements: !ruby/object:Gem::Requirement
|
|
177
179
|
requirements:
|
|
178
|
-
- - "
|
|
180
|
+
- - ">="
|
|
179
181
|
- !ruby/object:Gem::Version
|
|
180
|
-
version: '
|
|
182
|
+
version: '0.9'
|
|
183
|
+
- - "<"
|
|
184
|
+
- !ruby/object:Gem::Version
|
|
185
|
+
version: '1'
|
|
181
186
|
- !ruby/object:Gem::Dependency
|
|
182
|
-
name:
|
|
187
|
+
name: parallel
|
|
183
188
|
requirement: !ruby/object:Gem::Requirement
|
|
184
189
|
requirements:
|
|
185
|
-
- - "
|
|
190
|
+
- - ">="
|
|
186
191
|
- !ruby/object:Gem::Version
|
|
187
|
-
version: '1.
|
|
192
|
+
version: '1.10'
|
|
193
|
+
- - "<"
|
|
194
|
+
- !ruby/object:Gem::Version
|
|
195
|
+
version: '2.0'
|
|
188
196
|
type: :development
|
|
189
197
|
prerelease: false
|
|
190
198
|
version_requirements: !ruby/object:Gem::Requirement
|
|
191
199
|
requirements:
|
|
192
|
-
- - "
|
|
200
|
+
- - ">="
|
|
201
|
+
- !ruby/object:Gem::Version
|
|
202
|
+
version: '1.10'
|
|
203
|
+
- - "<"
|
|
193
204
|
- !ruby/object:Gem::Version
|
|
194
|
-
version: '
|
|
205
|
+
version: '2.0'
|
|
195
206
|
- !ruby/object:Gem::Dependency
|
|
196
207
|
name: rake
|
|
197
208
|
requirement: !ruby/object:Gem::Requirement
|
|
198
209
|
requirements:
|
|
199
|
-
- - "
|
|
210
|
+
- - ">="
|
|
211
|
+
- !ruby/object:Gem::Version
|
|
212
|
+
version: '13.0'
|
|
213
|
+
- - "<"
|
|
200
214
|
- !ruby/object:Gem::Version
|
|
201
|
-
version: '
|
|
215
|
+
version: '14'
|
|
202
216
|
type: :development
|
|
203
217
|
prerelease: false
|
|
204
218
|
version_requirements: !ruby/object:Gem::Requirement
|
|
205
219
|
requirements:
|
|
206
|
-
- - "
|
|
220
|
+
- - ">="
|
|
221
|
+
- !ruby/object:Gem::Version
|
|
222
|
+
version: '13.0'
|
|
223
|
+
- - "<"
|
|
207
224
|
- !ruby/object:Gem::Version
|
|
208
|
-
version: '
|
|
225
|
+
version: '14'
|
|
209
226
|
- !ruby/object:Gem::Dependency
|
|
210
227
|
name: rspec
|
|
211
228
|
requirement: !ruby/object:Gem::Requirement
|
|
212
229
|
requirements:
|
|
213
230
|
- - "~>"
|
|
214
231
|
- !ruby/object:Gem::Version
|
|
215
|
-
version: '3
|
|
232
|
+
version: '3'
|
|
216
233
|
type: :development
|
|
217
234
|
prerelease: false
|
|
218
235
|
version_requirements: !ruby/object:Gem::Requirement
|
|
219
236
|
requirements:
|
|
220
237
|
- - "~>"
|
|
221
238
|
- !ruby/object:Gem::Version
|
|
222
|
-
version: '3
|
|
239
|
+
version: '3'
|
|
223
240
|
- !ruby/object:Gem::Dependency
|
|
224
241
|
name: rubocop
|
|
225
242
|
requirement: !ruby/object:Gem::Requirement
|
|
226
243
|
requirements:
|
|
227
244
|
- - ">="
|
|
228
245
|
- !ruby/object:Gem::Version
|
|
229
|
-
version: '
|
|
246
|
+
version: '1.72'
|
|
247
|
+
- - "<"
|
|
248
|
+
- !ruby/object:Gem::Version
|
|
249
|
+
version: '2'
|
|
230
250
|
type: :development
|
|
231
251
|
prerelease: false
|
|
232
252
|
version_requirements: !ruby/object:Gem::Requirement
|
|
233
253
|
requirements:
|
|
234
254
|
- - ">="
|
|
235
255
|
- !ruby/object:Gem::Version
|
|
236
|
-
version: '
|
|
256
|
+
version: '1.72'
|
|
257
|
+
- - "<"
|
|
258
|
+
- !ruby/object:Gem::Version
|
|
259
|
+
version: '2'
|
|
237
260
|
- !ruby/object:Gem::Dependency
|
|
238
261
|
name: simplecov
|
|
239
262
|
requirement: !ruby/object:Gem::Requirement
|
|
240
263
|
requirements:
|
|
241
264
|
- - "~>"
|
|
242
265
|
- !ruby/object:Gem::Version
|
|
243
|
-
version: '0
|
|
266
|
+
version: '0'
|
|
244
267
|
type: :development
|
|
245
268
|
prerelease: false
|
|
246
269
|
version_requirements: !ruby/object:Gem::Requirement
|
|
247
270
|
requirements:
|
|
248
271
|
- - "~>"
|
|
249
272
|
- !ruby/object:Gem::Version
|
|
250
|
-
version: '0
|
|
273
|
+
version: '0'
|
|
251
274
|
description: The Moosecastle CLI tool for Ansible-compatable dynamic inventory management.
|
|
252
275
|
email:
|
|
253
276
|
- russell@blakemere.ca
|
|
@@ -256,18 +279,23 @@ executables:
|
|
|
256
279
|
extensions: []
|
|
257
280
|
extra_rdoc_files: []
|
|
258
281
|
files:
|
|
259
|
-
- ".
|
|
282
|
+
- ".github/workflows/ci.yml"
|
|
283
|
+
- ".github/workflows/release.yml"
|
|
260
284
|
- ".gitignore"
|
|
285
|
+
- ".gitleaks.toml"
|
|
261
286
|
- ".rubocop.yml"
|
|
287
|
+
- BACKLOG.md
|
|
262
288
|
- Gemfile
|
|
263
|
-
-
|
|
289
|
+
- Gemfile.lock
|
|
264
290
|
- LICENSE.txt
|
|
265
291
|
- README.md
|
|
266
292
|
- Rakefile
|
|
267
293
|
- bin/moose-inventory
|
|
268
|
-
-
|
|
269
|
-
-
|
|
270
|
-
-
|
|
294
|
+
- docs/release/publishing.md
|
|
295
|
+
- docs/release/release-readiness.md
|
|
296
|
+
- docs/security-audit-2026-05-21.md
|
|
297
|
+
- docs/security-audit-2026-05-26-rerun.md
|
|
298
|
+
- docs/security-audit-2026-05-26.md
|
|
271
299
|
- lib/moose_inventory.rb
|
|
272
300
|
- lib/moose_inventory/cli/application.rb
|
|
273
301
|
- lib/moose_inventory/cli/formatter.rb
|
|
@@ -283,6 +311,7 @@ files:
|
|
|
283
311
|
- lib/moose_inventory/cli/group_rmchild.rb
|
|
284
312
|
- lib/moose_inventory/cli/group_rmhost.rb
|
|
285
313
|
- lib/moose_inventory/cli/group_rmvar.rb
|
|
314
|
+
- lib/moose_inventory/cli/helpers.rb
|
|
286
315
|
- lib/moose_inventory/cli/host.rb
|
|
287
316
|
- lib/moose_inventory/cli/host_add.rb
|
|
288
317
|
- lib/moose_inventory/cli/host_addgroup.rb
|
|
@@ -297,11 +326,25 @@ files:
|
|
|
297
326
|
- lib/moose_inventory/db/db.rb
|
|
298
327
|
- lib/moose_inventory/db/exceptions.rb
|
|
299
328
|
- lib/moose_inventory/db/models.rb
|
|
329
|
+
- lib/moose_inventory/inventory_context.rb
|
|
330
|
+
- lib/moose_inventory/operations/add_associations.rb
|
|
331
|
+
- lib/moose_inventory/operations/add_groups.rb
|
|
332
|
+
- lib/moose_inventory/operations/add_hosts.rb
|
|
333
|
+
- lib/moose_inventory/operations/group_child_relations.rb
|
|
334
|
+
- lib/moose_inventory/operations/group_cleanup.rb
|
|
335
|
+
- lib/moose_inventory/operations/remove_associations.rb
|
|
336
|
+
- lib/moose_inventory/operations/remove_groups.rb
|
|
300
337
|
- lib/moose_inventory/version.rb
|
|
301
338
|
- moose-inventory.gemspec
|
|
339
|
+
- scripts/check.sh
|
|
340
|
+
- scripts/ci/check_permissions.sh
|
|
341
|
+
- scripts/ci/check_rubocop.sh
|
|
342
|
+
- scripts/ci/check_secrets.sh
|
|
343
|
+
- scripts/ci/check_security.sh
|
|
344
|
+
- scripts/ci/install_security_tools.sh
|
|
345
|
+
- scripts/ci/package_sanity.sh
|
|
302
346
|
- scripts/files.rb
|
|
303
|
-
- scripts/
|
|
304
|
-
- scripts/guard_test.sh
|
|
347
|
+
- scripts/install_dependencies.sh
|
|
305
348
|
- scripts/reports.sh
|
|
306
349
|
- scripts/work-through.sh
|
|
307
350
|
- spec/config/config.yml
|
|
@@ -333,13 +376,18 @@ files:
|
|
|
333
376
|
- spec/lib/moose_inventory/config/config_spec.rb
|
|
334
377
|
- spec/lib/moose_inventory/db/db_spec.rb
|
|
335
378
|
- spec/lib/moose_inventory/db/models_spec.rb
|
|
379
|
+
- spec/lib/moose_inventory/operations/add_associations_spec.rb
|
|
380
|
+
- spec/lib/moose_inventory/operations/add_groups_spec.rb
|
|
381
|
+
- spec/lib/moose_inventory/operations/add_hosts_spec.rb
|
|
382
|
+
- spec/lib/moose_inventory/operations/group_child_relations_spec.rb
|
|
383
|
+
- spec/lib/moose_inventory/operations/remove_associations_spec.rb
|
|
384
|
+
- spec/lib/moose_inventory/operations/remove_groups_spec.rb
|
|
336
385
|
- spec/shared/shared_config_setup.rb
|
|
337
386
|
- spec/spec_helper.rb
|
|
338
387
|
homepage: https://github.com/RusDavies/moose-inventory
|
|
339
388
|
licenses:
|
|
340
389
|
- MIT
|
|
341
390
|
metadata: {}
|
|
342
|
-
post_install_message:
|
|
343
391
|
rdoc_options: []
|
|
344
392
|
require_paths:
|
|
345
393
|
- lib
|
|
@@ -347,16 +395,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
347
395
|
requirements:
|
|
348
396
|
- - ">="
|
|
349
397
|
- !ruby/object:Gem::Version
|
|
350
|
-
version: '
|
|
398
|
+
version: '3.2'
|
|
351
399
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
352
400
|
requirements:
|
|
353
401
|
- - ">="
|
|
354
402
|
- !ruby/object:Gem::Version
|
|
355
403
|
version: '0'
|
|
356
404
|
requirements: []
|
|
357
|
-
|
|
358
|
-
rubygems_version: 2.2.5
|
|
359
|
-
signing_key:
|
|
405
|
+
rubygems_version: 3.6.9
|
|
360
406
|
specification_version: 4
|
|
361
407
|
summary: Moose-tools inventory manager
|
|
362
408
|
test_files:
|
|
@@ -389,5 +435,11 @@ test_files:
|
|
|
389
435
|
- spec/lib/moose_inventory/config/config_spec.rb
|
|
390
436
|
- spec/lib/moose_inventory/db/db_spec.rb
|
|
391
437
|
- spec/lib/moose_inventory/db/models_spec.rb
|
|
438
|
+
- spec/lib/moose_inventory/operations/add_associations_spec.rb
|
|
439
|
+
- spec/lib/moose_inventory/operations/add_groups_spec.rb
|
|
440
|
+
- spec/lib/moose_inventory/operations/add_hosts_spec.rb
|
|
441
|
+
- spec/lib/moose_inventory/operations/group_child_relations_spec.rb
|
|
442
|
+
- spec/lib/moose_inventory/operations/remove_associations_spec.rb
|
|
443
|
+
- spec/lib/moose_inventory/operations/remove_groups_spec.rb
|
|
392
444
|
- spec/shared/shared_config_setup.rb
|
|
393
445
|
- spec/spec_helper.rb
|
data/.coveralls.yml
DELETED
|
File without changes
|
data/Guardfile
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# -*- mode: ruby -*-
|
|
2
|
-
# vi: set ft=ruby :
|
|
3
|
-
|
|
4
|
-
# More info at https://github.com/guard/guard#readme
|
|
5
|
-
|
|
6
|
-
clearing :on
|
|
7
|
-
#
|
|
8
|
-
group :bundler do
|
|
9
|
-
watch('Gemfile')
|
|
10
|
-
watch(/.*\.gemspec/)
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
group 'quality' do
|
|
14
|
-
opts = ' -D -a --format html -o spec/reports/quality/rubocop.html'.split(' ')
|
|
15
|
-
guard :rubocop, all_on_start: true, cli: opts do
|
|
16
|
-
watch(/.+\.rb$/)
|
|
17
|
-
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
group 'test' do
|
|
22
|
-
cmd = 'bundle exec rspec -I lib/moose_inventory -I spec '\
|
|
23
|
-
'--color --format html --out spec/reports/test/rspec.html'
|
|
24
|
-
guard :rspec, cmd: cmd do
|
|
25
|
-
require 'guard/rspec/dsl'
|
|
26
|
-
dsl = Guard::RSpec::Dsl.new(self)
|
|
27
|
-
|
|
28
|
-
# RSpec files
|
|
29
|
-
rspec = dsl.rspec
|
|
30
|
-
watch(rspec.spec_helper) { rspec.spec_dir }
|
|
31
|
-
watch(rspec.spec_support) { rspec.spec_dir }
|
|
32
|
-
watch(rspec.spec_files)
|
|
33
|
-
|
|
34
|
-
# Ruby files
|
|
35
|
-
ruby = dsl.ruby
|
|
36
|
-
dsl.watch_spec_files_for(ruby.lib_files)
|
|
37
|
-
end
|
|
38
|
-
end
|
|
File without changes
|
data/config/dotfiles/gitignore
DELETED