Sha256: ff7add4019351b0a5a4a02d94df07f0962e7c52a5a2672f60e290d2902a2f85d

Contents?: true

Size: 740 Bytes

Versions: 21

Compression:

Stored size: 740 Bytes

Contents

module Actions
  module Middleware
    class LoadSettingValues < ::Dynflow::Middleware
      # ::Actions::Middleware::LoadSettingValues
      #
      # A middleware to ensure we load current setting values

      def delay(*args)
        reload_setting_values
        pass(*args)
      end

      def plan(*args)
        reload_setting_values
        pass(*args)
      end

      def run(*args)
        reload_setting_values
        pass(*args)
      end

      def finalize(*args)
        reload_setting_values
        pass(*args)
      end

      def hook(*args)
        reload_setting_values
        pass(*args)
      end

      private

      def reload_setting_values
        ::Foreman.settings.load_values
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
foreman-tasks-10.0.1 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-10.0.0 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-9.2.3 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-9.2.2 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-9.2.1 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-9.2.0 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-9.1.1 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-9.0.4 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-9.1.0 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-9.0.2 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-9.0.1 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-8.3.3 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-9.0.0 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-8.2.1 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-8.1.4 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-8.3.2 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-8.3.1 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-8.1.3 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-8.3.0 app/lib/actions/middleware/load_setting_values.rb
foreman-tasks-8.2.0 app/lib/actions/middleware/load_setting_values.rb