foreman-tasks 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 458cdf116e5863c72f7eab9271dcf183f8cb0467
4
- data.tar.gz: 6145517079ffdc238906fb7a341b69b0e2ddc404
3
+ metadata.gz: 5215b1de3a75cefb5abd6ee4cddab099336f5982
4
+ data.tar.gz: d4a4c997bc7a1527fb022d2e058f8e0b6c47379d
5
5
  SHA512:
6
- metadata.gz: 697bdc0c10a2938a4b05e5e6749ba2be418461c0cf57bc003e0afe559efd07e7d6816901f7ef89129578a1aafa9fdaec62e8b12690039c54b12ae2f29212a16e
7
- data.tar.gz: 875036a45b8605bfa1f6b518804d7b49f54aea3ffc037b22c2c075563c3bcb11dad8a68898e477b39431b4ceb17728b9d6ece819701993517e3ce016cccd2c3f
6
+ metadata.gz: d4a03380fa48d6f4c61f0b3b87ab9ef0b81e7938ee1090a50e205ec9e2a60b4e11a1a18ccd3bbb7c5d69880b8bf76e913a403233f5df7df9b4839f6cc5310396
7
+ data.tar.gz: dfd5566f78c22ab02632dc33edca0a9a9e9ef25a00e297399d09440be29c2d79fd3bb87371766fef052e5ae8aefac914dc7407b8093071a21d9218eef8588a34
@@ -1,13 +1,7 @@
1
1
  module ForemanTasks
2
2
  module Concerns
3
3
  module HostsControllerExtension
4
- extend ActiveSupport::Concern
5
-
6
- included do
7
- alias_method_chain :facts, :dynflow
8
- end
9
-
10
- def facts_with_dynflow
4
+ def facts
11
5
  task = ForemanTasks.async_task(::Actions::Foreman::Host::ImportFacts,
12
6
  detect_host_type,
13
7
  params[:name],
@@ -133,7 +133,7 @@ module ForemanTasks
133
133
  # to enable async Foreman operations using Dynflow
134
134
  if ENV['FOREMAN_TASKS_MONKEYS'] == 'true'
135
135
  config.to_prepare do
136
- ::Api::V2::HostsController.send :include, ForemanTasks::Concerns::HostsControllerExtension
136
+ ::Api::V2::HostsController.send :prepend, ForemanTasks::Concerns::HostsControllerExtension
137
137
  ::Host::Base.send :include, ForemanTasks::Concerns::HostActionSubject
138
138
  end
139
139
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanTasks
2
- VERSION = '0.11.2'.freeze
2
+ VERSION = '0.11.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-23 00:00:00.000000000 Z
11
+ date: 2018-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman-tasks-core