Sha256: 718bb23c66e3ad1842c1c94f204a2315894f45ae1c29718ca3ca8ea344eaccc2
Contents?: true
Size: 460 Bytes
Versions: 5
Compression:
Stored size: 460 Bytes
Contents
module ForemanSalt module Concerns module UnattendedControllerExtensions extend ActiveSupport::Concern included do before_filter :handle_salt, :only => [:provision] end private def handle_salt return true if @spoof render(:text => _("Failed to set autosign for host. Terminating the build!"), :status => 500) unless @host.respond_to?(:handle_salt) && @host.handle_salt end end end end
Version data entries
5 entries across 5 versions & 1 rubygems