Sha256: 2640af9fd4768824eb417ab9b6a25fe81a5ad550564ba06aec32f902c6933ec1

Contents?: true

Size: 351 Bytes

Versions: 8

Compression:

Stored size: 351 Bytes

Contents

module ForemanDiscovery
  class ProxyOperations < ::ProxyAPI::Resource
    def initialize args
      @url  = args[:url]
      @operation = args[:operation]
      super args
    end

    def parse_put_operation
      parse put({}, "/#{@operation}")
    end

    def parse_get_operation
      @url  += "/#{@operation}"
      parse get
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
foreman_discovery-4.1.0 app/services/foreman_discovery/proxy_operations.rb
foreman_discovery-4.0.0 lib/foreman_discovery/proxy_operations.rb
foreman_discovery-2.0.2 lib/foreman_discovery/proxy_operations.rb
foreman_discovery-2.0.1 lib/foreman_discovery/proxy_operations.rb
foreman_discovery-3.0.0 lib/foreman_discovery/proxy_operations.rb
foreman_discovery-2.0.0 lib/foreman_discovery/proxy_operations.rb
foreman_discovery-2.0.0.rc2 lib/foreman_discovery/proxy_operations.rb
foreman_discovery-2.0.0.rc1 lib/foreman_discovery/proxy_operations.rb