foreman-tasks 0.6.5 → 0.6.6
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.
@@ -36,7 +36,7 @@ module ForemanTasks
|
|
36
36
|
if task.paused?
|
37
37
|
task.state = :stopped
|
38
38
|
task.save!
|
39
|
-
flash[:notice] = _('The task
|
39
|
+
flash[:notice] = _('The task resources were unlocked.')
|
40
40
|
else
|
41
41
|
flash[:warning] = _('The execution has to be paused.')
|
42
42
|
end
|
data/app/lib/actions/base.rb
CHANGED
@@ -25,6 +25,7 @@ module ForemanTasks
|
|
25
25
|
scoped_search :in => :owners, :on => :firstname, :complete_value => true, :rename => "owner.firstname", :ext_method => :search_by_owner
|
26
26
|
|
27
27
|
scope :active, -> { where('state != ?', :stopped) }
|
28
|
+
scope :running, -> { where("state NOT IN ('stopped', 'paused')") }
|
28
29
|
scope :for_resource,
|
29
30
|
(lambda do |resource|
|
30
31
|
joins(:locks).where(:"foreman_tasks_locks.resource_id" => resource.id,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|