foreman-tasks 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -92,10 +92,17 @@ module ForemanTasks
92
92
  def eager_load_actions!
93
93
  config.eager_load_paths.each do |load_path|
94
94
  Dir.glob("#{load_path}/**/*.rb").sort.each do |file|
95
- require_dependency file
95
+ unless loaded_paths.include?(file)
96
+ require_dependency file
97
+ loaded_paths << file
98
+ end
96
99
  end
97
100
  end
98
101
  @world.reload! if @world
99
102
  end
103
+
104
+ def loaded_paths
105
+ @loaded_paths ||= Set.new
106
+ end
100
107
  end
101
108
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanTasks
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
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.3.2
4
+ version: 0.3.3
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-02-27 00:00:00.000000000 Z
12
+ date: 2014-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails