Skip to content

Commit 5166c2b

Browse files
committed
Correct various minor spelling errors.
1 parent de35c81 commit 5166c2b

26 files changed

Lines changed: 49 additions & 49 deletions

lib/softlayer/Account.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Account < SoftLayer::ModelBase
5858

5959
##
6060
# :attr_reader:
61-
# The office phone nubmer listed for the primary contact
61+
# The office phone number listed for the primary contact
6262
sl_attr :officePhone
6363

6464
##
@@ -108,7 +108,7 @@ class Account < SoftLayer::ModelBase
108108
end
109109

110110
##
111-
# Retrieve an account's network message delivery acounts.
111+
# Retrieve an account's network message delivery accounts.
112112
sl_dynamic_attr :network_message_delivery_accounts do |net_msg_deliv_accts|
113113
net_msg_deliv_accts.should_update? do
114114
@network_message_delivery_accounts == nil

lib/softlayer/BareMetalServer.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
module SoftLayer
1010
#
1111
# This class represents a Bare Metal Server, a hardware server in contrast to a virtual machine,
12-
# in the SoftLayer Environment. It corresponds rougly to the +SoftLayer_Hardware+ and
12+
# in the SoftLayer Environment. It corresponds roughly to the +SoftLayer_Hardware+ and
1313
# +SoftLayer_Hardware_Server+ services in the SoftLayer API
1414
#
1515
# http://sldn.softlayer.com/reference/datatypes/SoftLayer_Hardware
@@ -23,7 +23,7 @@ class BareMetalServer < Server
2323
# a Bare Metal Instance is physical, hardware server that is is provisioned to
2424
# match a profile with characteristics similar to a Virtual Server
2525
#
26-
# This is an important distincition in rare cases, like cancelling the server.
26+
# This is an important distinction in rare cases, like cancelling the server.
2727
#
2828
def bare_metal_instance?
2929
if has_sl_property?(:bareMetalInstanceFlag)
@@ -65,7 +65,7 @@ def remote_management_accounts
6565
# Returns the typical Service used to work with this Server
6666
# For Bare Metal Servers that is +SoftLayer_Hardware+ though in some special cases
6767
# you may have to use +SoftLayer_Hardware_Server+ as a type or service. That
68-
# service object is available thorugh the hardware_server_service method
68+
# service object is available through the hardware_server_service method
6969
def service
7070
return softlayer_client[:Hardware_Server].object_with_id(self.id)
7171
end
@@ -146,7 +146,7 @@ def firewall_port_speed
146146
end
147147

148148
##
149-
# Retrive the bare metal server with the given server ID from the
149+
# Retrieve the bare metal server with the given server ID from the
150150
# SoftLayer API
151151
#
152152
# The options parameter should contain:

lib/softlayer/BareMetalServerOrder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class BareMetalServerOrder
9393
attr_accessor :max_port_speed
9494

9595
##
96-
# Create a new order that works thorugh the given client connection
96+
# Create a new order that works through the given client connection
9797
def initialize (client = nil)
9898
@softlayer_client = client || Client.default_client
9999
raise "#{__method__} requires a client but none was given and Client::default_client is not set" if !@softlayer_client
@@ -195,7 +195,7 @@ def self.disk_options(client = nil)
195195
end
196196

197197
##
198-
# Returns a list of the valid :os_refrence_codes
198+
# Returns a list of the valid :os_reference_codes
199199
def self.os_reference_code_options(client = nil)
200200
create_object_options(client)['operatingSystems'].collect { |os_spec| os_spec['template']['operatingSystemReferenceCode'] }.uniq.sort!
201201
end

lib/softlayer/BareMetalServerOrder_Package.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class BareMetalServerOrder_Package < Server
4949
# that is the +id+ of a +SoftLayer_Product_Item_Price+. Instances of the ProductConfigurationOption
5050
# class behave this way.
5151
#
52-
# At a minimum, the configuation_options should include entries for each of the categories
52+
# At a minimum, the configuration_options should include entries for each of the categories
5353
# required by the package (i.e. those returned from ProductPackage#required_categories)
5454
attr_accessor :configuration_options
5555

lib/softlayer/Client.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
module SoftLayer
88
# A client is responsible for storing authentication information for API calls and
9-
# it serves as a centeral repository for the Service instances that call into the
9+
# it serves as a central repository for the Service instances that call into the
1010
# network API.
1111
#
1212
# When you create a client, you pass in hash arguments specifying how the client
@@ -21,16 +21,16 @@ module SoftLayer
2121
# class to provide the missing information. Please see that class for details.
2222
#
2323
class Client
24-
# A username passed as authentication for each request. Cannot be emtpy or nil.
24+
# A username passed as authentication for each request. Cannot be empty or nil.
2525
attr_reader :username
2626

27-
# An API key passed as part of the authentication of each request. Cannot be emtpy or nil.
27+
# An API key passed as part of the authentication of each request. Cannot be empty or nil.
2828
attr_reader :api_key
2929

30-
# The base URL for requests that are passed to the server. Cannot be emtpy or nil.
30+
# The base URL for requests that are passed to the server. Cannot be empty or nil.
3131
attr_reader :endpoint_url
3232

33-
# A string passsed as the value for the User-Agent header when requests are sent to SoftLayer API.
33+
# A string passed as the value for the User-Agent header when requests are sent to SoftLayer API.
3434
attr_accessor :user_agent
3535

3636
# An integer value (in seconds). The number of seconds to wait for HTTP requests to the network API
@@ -63,7 +63,7 @@ def self.default_client=(new_default)
6363
# Clients are built with a number of settings:
6464
# * <b>+:username+</b> - The username of the account you wish to access through the API
6565
# * <b>+:api_key+</b> - The API key used to authenticate the user with the API
66-
# * <b>+:enpoint_url+</b> - The API endpoint the client should connect to. This defaults to API_PUBLIC_ENDPOINT
66+
# * <b>+:endpoint_url+</b> - The API endpoint the client should connect to. This defaults to API_PUBLIC_ENDPOINT
6767
# * <b>+:user_agent+</b> - A string that is passed along as the user agent when the client sends requests to the server
6868
# * <b>+:timeout+</b> - An integer number of seconds to wait until network requests time out. Corresponds to the network_timeout property of the client
6969
#
@@ -92,7 +92,7 @@ def initialize(options = {})
9292

9393
raise "A SoftLayer Client requires a username" if !@username || @username.empty?
9494
raise "A SoftLayer Client requires an api_key" if !@api_key || @api_key.empty?
95-
raise "A SoftLayer Clietn requires an enpoint URL" if !@endpoint_url || @endpoint_url.empty?
95+
raise "A SoftLayer Client requires an endpoint URL" if !@endpoint_url || @endpoint_url.empty?
9696
end
9797

9898
# return a hash of the authentication headers for the client

lib/softlayer/Config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module SoftLayer
1111
# The SoftLayer Config class is responsible for providing the key information
1212
# the library needs to communicate with the network SoftLayer API. Those three crucial
1313
# pieces of information are the Username, the API Key, and the endpoint_url. This information
14-
# is collected in a hash with the keys `:username`, `:api_key`, and `:endpoint_url` repsectively.
14+
# is collected in a hash with the keys `:username`, `:api_key`, and `:endpoint_url` respectively.
1515
#
1616
# The routine used to retrieve this information from a Config object is Config.client_settings
1717
#
@@ -43,7 +43,7 @@ module SoftLayer
4343
# = Environment Variables
4444
#
4545
# The config class will search the environment variables SL_USERNAME and SL_API_KEY for
46-
# the username and API key respectively. The endpoint_url may not be set thorugh
46+
# the username and API key respectively. The endpoint_url may not be set through
4747
# environment variables.
4848
#
4949
# = Global Variables

lib/softlayer/Datacenter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def self.datacenter_named(name, client = nil)
3838
# Return a list of all the datacenters
3939
#
4040
# If the client parameter is not provided, the routine
41-
# will try to use Client::defult_client. If no client
41+
# will try to use Client::default_client. If no client
4242
# can be found, the routine will raise an exception
4343
#
4444
# This routine will only retrieve the list of datacenters from

lib/softlayer/ImageTemplate.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module SoftLayer
99
##
1010
# A Virtual Server Image Template.
1111
#
12-
# This class rougly corresponds to the unwieldily named
12+
# This class roughly corresponds to the unwieldy named
1313
# +SoftLayer_Virtual_Guest_Block_Device_Template_Group+
1414
# service:
1515
#
@@ -91,7 +91,7 @@ def datacenters
9191
# appear in this array! The list given must be comprehensive.
9292
#
9393
# The available_datacenters call returns a list of the values that are valid
94-
# whithin this array.
94+
# within this array.
9595
def datacenters=(datacenters_array)
9696
datacenter_data = datacenters_array.collect do |datacenter|
9797
{ "id" => datacenter.id }
@@ -160,7 +160,7 @@ def delete!
160160
end
161161

162162
##
163-
# Repeatedly poll the netwokr API until transactions related to this image
163+
# Repeatedly poll the network API until transactions related to this image
164164
# template are finished
165165
#
166166
# A template is not 'ready' until all the transactions on the template
@@ -210,7 +210,7 @@ def softlayer_properties(object_mask = nil)
210210
#
211211
# Additional options that may be provided:
212212
# * <b>+:name+</b> (string) - Return templates with the given name
213-
# * <b>+:global_id+</b> (string) - Return templates with the given global identfier
213+
# * <b>+:global_id+</b> (string) - Return templates with the given global identifier
214214
def self.find_private_templates(options_hash = {})
215215
softlayer_client = options_hash[:client] || Client.default_client
216216
raise "#{__method__} requires a client but none was given and Client::default_client is not set" if !softlayer_client
@@ -276,7 +276,7 @@ def self.find_private_templates(options_hash = {})
276276
#
277277
# Additional options that may be provided:
278278
# * <b>+:name+</b> (string) - Return templates with the given name
279-
# * <b>+:global_id+</b> (string) - Return templates with the given global identfier
279+
# * <b>+:global_id+</b> (string) - Return templates with the given global identifier
280280
def self.find_public_templates(options_hash = {})
281281
softlayer_client = options_hash[:client] || Client.default_client
282282
raise "#{__method__} requires a client but none was given and Client::default_client is not set" if !softlayer_client
@@ -331,7 +331,7 @@ def self.find_public_templates(options_hash = {})
331331
end
332332

333333
##
334-
# Retrive the Image Template with the given ID
334+
# Retrieve the Image Template with the given ID
335335
# (Note! This is the service ID, not the globalIdentifier!)
336336
#
337337
# The options parameter should contain:

lib/softlayer/ModelBase.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def refresh_details(object_mask = nil)
6969
##
7070
# Returns the value of of the given property as stored in the
7171
# softlayer_hash. This gives you access to the low-level, raw
72-
# properties that underly this model object. The need for this
72+
# properties that underlie this model object. The need for this
7373
# is not uncommon, but using this method should still be done
7474
# with deliberation.
7575
def [](softlayer_property)
@@ -107,7 +107,7 @@ def to_ary()
107107

108108
##
109109
# Subclasses should implement this method as part of enabling the
110-
# refresh_details fuctionality The implementation should make a request
110+
# refresh_details functionality The implementation should make a request
111111
# to the SoftLayer API and retrieve an up-to-date SoftLayer hash
112112
# representation of this object. That hash should be the return value
113113
# of this routine.

lib/softlayer/NetworkStorageGroup.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class NetworkStorageGroup < ModelBase
8181
end
8282

8383
##
84-
# The description of theSoftLayer_Network_Storage_OS_Type Operating System designation that this group was created for.
84+
# The description of the SoftLayer_Network_Storage_OS_Type Operating System designation that this group was created for.
8585
sl_dynamic_attr :os_description do |resource|
8686
resource.should_update? do
8787
#only retrieved once per instance
@@ -95,7 +95,7 @@ class NetworkStorageGroup < ModelBase
9595
end
9696

9797
##
98-
# The name of theSoftLayer_Network_Storage_OS_Type Operating System designation that this group was created for.
98+
# The name of the SoftLayer_Network_Storage_OS_Type Operating System designation that this group was created for.
9999
sl_dynamic_attr :os_name do |resource|
100100
resource.should_update? do
101101
#only retrieved once per instance

0 commit comments

Comments
 (0)