Sha256: 958cfeebf7523603a7f19d19af5357b42f5cd74218db314dd9a3d6ae0332bb28
Contents?: true
Size: 542 Bytes
Versions: 51
Compression:
Stored size: 542 Bytes
Contents
# frozen_string_literal: true module ForemanAnsible # Helper methods to create a ProxyAPI object for Ansible module ProxyAPI extend ActiveSupport::Concern included do attr_reader :ansible_proxy def find_proxy_api if ansible_proxy.blank? raise ::Foreman::Exception.new(N_('Proxy not found')) end @proxy_api = ::ProxyAPI::Ansible.new(:url => ansible_proxy.url) end def proxy_api return @proxy_api if @proxy_api find_proxy_api end end end end
Version data entries
51 entries across 51 versions & 1 rubygems