foreman_openscap 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foreman_openscap/engine.rb +11 -5
- data/lib/foreman_openscap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d990a16bea1dc5c0a6f4842fb3f61df880f744fb
|
4
|
+
data.tar.gz: 1cc01508d9d31b40a171f809f4f6efa8ebd6485a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e33ad9f4607d3b235e0be752bf6a49594221a2ed8ac4e3c6a67f59b71df5712ad041c8e09ba4718d56301d4d9c21a2e9898c92168f1feb25e6180d630e11121a
|
7
|
+
data.tar.gz: 2d58fcf86df24c30fdb767ad866a2e9ceb2b1e92a7ab8c97efcb793132f7a0371e2ffbce4d5ac1420665204abc1bc194702d4bb757338da4138669099a280a20
|
@@ -157,11 +157,17 @@ module ForemanOpenscap
|
|
157
157
|
parameter_filter Hostgroup, :openscap_proxy_id, :openscap_proxy
|
158
158
|
parameter_filter Log, :result
|
159
159
|
|
160
|
-
if ForemanOpenscap.with_remote_execution?
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
160
|
+
if ForemanOpenscap.with_remote_execution?
|
161
|
+
options = {
|
162
|
+
:description => N_("Run OpenSCAP scan"),
|
163
|
+
:provided_inputs => "policies"
|
164
|
+
}
|
165
|
+
|
166
|
+
if Gem::Version.new(ForemanRemoteExecution::VERSION) >= Gem::Version.new('1.2.3')
|
167
|
+
options[:host_action_button] = true
|
168
|
+
end
|
169
|
+
|
170
|
+
RemoteExecutionFeature.register(:foreman_openscap_run_scans, N_("Run OpenSCAP scan"), options)
|
165
171
|
end
|
166
172
|
|
167
173
|
add_controller_action_scope(::Api::V2::HostsController, :index) do |base_scope|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_openscap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Šimon Lukašík"
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-
|
14
|
+
date: 2017-04-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: deface
|