Module: Purest
- Defined in:
- lib/purest.rb,
lib/purest/app.rb,
lib/purest/dns.rb,
lib/purest/pod.rb,
lib/purest/cert.rb,
lib/purest/host.rb,
lib/purest/port.rb,
lib/purest/rest.rb,
lib/purest/snmp.rb,
lib/purest/drive.rb,
lib/purest/users.rb,
lib/purest/alerts.rb,
lib/purest/subnet.rb,
lib/purest/volume.rb,
lib/purest/network.rb,
lib/purest/version.rb,
lib/purest/hardware.rb,
lib/purest/messages.rb,
lib/purest/host_group.rb,
lib/purest/api_methods.rb,
lib/purest/configuration.rb,
lib/purest/physical_array.rb,
lib/purest/protection_group.rb,
lib/purest/directory_service.rb
Defined Under Namespace
Classes: APIMethods, Alerts, App, Cert, Configuration, DNS, DirectoryService, Drive, Hardware, Host, HostGroup, Messages, Network, PhysicalArray, Pod, Port, ProtectionGroup, Rest, SNMP, Subnet, Users, Volume
Constant Summary collapse
- VERSION =
'1.0.6'
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
-
.lib_path ⇒ Object
Returns the value of attribute lib_path.
-
.root_path ⇒ Object
Returns the value of attribute root_path.
Class Method Summary collapse
-
.configure {|Purest::Configuration| ... } ⇒ Object
Build optional configuration by yielding a block to configure.
-
.require_libs(*libs) ⇒ nil
(also: require_lib)
Internal: Requires internal Faraday libraries.
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
14 15 16 |
# File 'lib/purest.rb', line 14 def configuration @configuration end |
.lib_path ⇒ Object
Returns the value of attribute lib_path.
13 14 15 |
# File 'lib/purest.rb', line 13 def lib_path @lib_path end |
.root_path ⇒ Object
Returns the value of attribute root_path.
12 13 14 |
# File 'lib/purest.rb', line 12 def root_path @root_path end |
Class Method Details
.configure {|Purest::Configuration| ... } ⇒ Object
Build optional configuration by yielding a block to configure
43 44 45 46 |
# File 'lib/purest.rb', line 43 def configure self.configuration ||= Purest::Configuration.new yield(configuration) end |
.require_libs(*libs) ⇒ nil Also known as: require_lib
Internal: Requires internal Faraday libraries.
19 20 21 22 23 |
# File 'lib/purest.rb', line 19 def require_libs(*libs) libs.each do |lib| require "#{lib_path}/#{lib}" end end |