Sha256: 062df6f7eacba169141525e0865f6b838d73aa1e2d957dcd65ffafdd5ac5da5e

Contents?: true

Size: 505 Bytes

Versions: 17

Compression:

Stored size: 505 Bytes

Contents

require 'fog/openstack/models/collection'
require 'fog/openstack/models/baremetal/driver'

module Fog
  module Baremetal
    class OpenStack
      class Drivers < Fog::OpenStack::Collection
        model Fog::Baremetal::OpenStack::Driver

        def all(options = {})
          load_response(service.list_drivers(options), 'drivers')
        end

        def find_by_name(name)
          new(service.get_driver(name).body)
        end
        alias_method :get, :find_by_name
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
fog-openstack-0.1.10 lib/fog/openstack/models/baremetal/drivers.rb
fog-openstack-0.1.9 lib/fog/openstack/models/baremetal/drivers.rb
fog-openstack-0.1.8 lib/fog/openstack/models/baremetal/drivers.rb
fog-openstack-0.1.7 lib/fog/openstack/models/baremetal/drivers.rb
fog-openstack-0.1.6 lib/fog/openstack/models/baremetal/drivers.rb
fog-openstack-0.1.5 lib/fog/openstack/models/baremetal/drivers.rb
fog-openstack-0.1.4 lib/fog/openstack/models/baremetal/drivers.rb
fog-openstack-0.1.3 lib/fog/openstack/models/baremetal/drivers.rb
fog-openstack-0.1.2 lib/fog/openstack/models/baremetal/drivers.rb
fog-openstack-0.1.1 lib/fog/openstack/models/baremetal/drivers.rb
fog-openstack-0.1.0 lib/fog/openstack/models/baremetal/drivers.rb
fog-1.37.0 lib/fog/openstack/models/baremetal/drivers.rb
fog-1.36.0 lib/fog/openstack/models/baremetal/drivers.rb
fog-1.35.0 lib/fog/openstack/models/baremetal/drivers.rb
fog-2.0.0.pre.0 lib/fog/openstack/models/baremetal/drivers.rb
fog-1.34.0 lib/fog/openstack/models/baremetal/drivers.rb
fog-1.33.0 lib/fog/openstack/models/baremetal/drivers.rb