foreman_host_extra_validator 0.2.0 → 0.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f63f5ef9b4443c4a4fa5de029faf95a398b04de7872698dc031ca4ce92c6763
|
|
4
|
+
data.tar.gz: 6586b166074731b6178d7b80eecc8f4284319e0233db05c29eb5e91498afe723
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 289de1db84110f537572bb1b0dc9dc1cc156d6d61d7bccf20af34ed73d81261b3880fd528012bdb146822bbb8e205644b30048e2432eba19d60ae7380ede931e
|
|
7
|
+
data.tar.gz: 408256808741d275497f67c73f8ea9e97522fe35617954996769a845e20c05e18d4c2044f98970f7eaa0e1762e826a3f287852c9631850b31c484911a24d4052
|
|
@@ -4,6 +4,13 @@ module ForemanHostExtraValidator
|
|
|
4
4
|
|
|
5
5
|
config.autoload_paths += Dir["#{config.root}/app/models/concerns"]
|
|
6
6
|
|
|
7
|
+
# Add any db migrations
|
|
8
|
+
initializer 'foreman_host_extra_validator.load_app_instance_data' do |app|
|
|
9
|
+
ForemanHostExtraValidator::Engine.paths['db/migrate'].existent.each do |path|
|
|
10
|
+
app.config.paths['db/migrate'] << path
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
|
|
7
14
|
initializer 'foreman_host_extra_validator.register_plugin', :before => :finisher_hook do |_app|
|
|
8
15
|
Foreman::Plugin.register :foreman_host_extra_validator do
|
|
9
16
|
requires_foreman '>= 3.0.0'
|
|
@@ -11,7 +18,7 @@ module ForemanHostExtraValidator
|
|
|
11
18
|
settings do
|
|
12
19
|
category(:host_extra_validator, N_('Host Extra Validator')) do
|
|
13
20
|
setting('host_name_validation_regex',
|
|
14
|
-
description:
|
|
21
|
+
description: N_('Default regex the name of a host is validated against'),
|
|
15
22
|
type: :string,
|
|
16
23
|
default: '^[a-zA-Z0-9\-_]+$',
|
|
17
24
|
full_name: N_('Regular expresssion'))
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_host_extra_validator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Timo Goebel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
81
|
version: '0'
|
|
82
82
|
requirements: []
|
|
83
|
-
rubygems_version: 3.
|
|
83
|
+
rubygems_version: 3.3.7
|
|
84
84
|
signing_key:
|
|
85
85
|
specification_version: 4
|
|
86
86
|
summary: This plugin adds extra validations to a host.
|