foreman-tasks 0.1.4 → 0.1.5

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.
@@ -1,3 +1,5 @@
1
+ require 'fileutils'
2
+
1
3
  module ForemanTasks
2
4
  class Dynflow::Daemon
3
5
 
@@ -25,6 +27,7 @@ module ForemanTasks
25
27
  wait_attempts: 300,
26
28
  wait_sleep: 1 }
27
29
  options = default_options.merge(options)
30
+ FileUtils.mkdir_p(options[:pid_dir])
28
31
  begin
29
32
  require 'daemons'
30
33
  rescue LoadError
@@ -68,7 +71,8 @@ module ForemanTasks
68
71
  protected
69
72
 
70
73
  def listener
71
- ::Dynflow::Listeners::Socket.new(world, socket_path)
74
+ FileUtils.mkdir_p(File.dirname(socket_path))
75
+ ::Dynflow::Listeners::Socket.new(world, socket_path)
72
76
  end
73
77
 
74
78
  def socket_path
@@ -1,3 +1,3 @@
1
1
  module ForemanTasks
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
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.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: