Skip to content

Commit

Permalink
Fix typos (#4111)
Browse files Browse the repository at this point in the history
Found via `typos --format brief`
  • Loading branch information
kianmeng committed Apr 3, 2024
1 parent 73fba51 commit ebc10c8
Show file tree
Hide file tree
Showing 32 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion lib/fog/bin/opennebula.rb
@@ -1,4 +1,4 @@
module OpenNebula # deviates from other bin stuff to accomodate gem
module OpenNebula # deviates from other bin stuff to accommodate gem
class << self

def class_for(key)
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/clodo/requests/compute/add_ip_address.rb
Expand Up @@ -3,7 +3,7 @@ module Compute
class Clodo
class Real
# Bye new IP-address for specified server
# ==== Paramaters
# ==== Parameters
# * server_id<~Integer> - Id of server to bye IP for
#
# ==== Returns
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/clodo/requests/compute/delete_ip_address.rb
Expand Up @@ -3,7 +3,7 @@ module Compute
class Clodo
class Real
# Delete IP-address from specified server
# ==== Paramaters
# ==== Parameters
# * server_id<~Integer> - Id of server to delete IP from
# * ip<~String> - IP-address to delete
#
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/clodo/requests/compute/move_ip_address.rb
Expand Up @@ -3,7 +3,7 @@ module Compute
class Clodo
class Real
# Move IP-address to specified server.
# ==== Paramaters
# ==== Parameters
# * server_id<~Integer> - Id of server to move IP to
# * ip<~String> - IP-address to move
#
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/dnsmadeeasy/requests/dns/update_record.rb
Expand Up @@ -6,7 +6,7 @@ class Real
# Note that a record ID will be generated by the system with this request and any ID that is sent will be ignored. Records are not modifiable for domains that are locked to a template.
#
# DNS Made Easy has no update record method but they plan to add it in the next update!
# They sent a reponse suggesting, there going to internaly delete/create a new record when we make update record call, so I've done the same here for now!
# They sent a response suggesting, there going to internally delete/create a new record when we make update record call, so I've done the same here for now!
# If want to update a record, it might be better to manually destroy and then create a new record
#
# ==== Parameters
Expand Down
4 changes: 2 additions & 2 deletions lib/fog/dreamhost/examples/dns/getting_started.md
Expand Up @@ -22,7 +22,7 @@ dh = Fog::DNS.new( :provider => "Dreamhost",

## List all the DNS zones

This will list all the DNS zones avaialble in your account:
This will list all the DNS zones available in your account:

```ruby
dh.zones.each do |zone|
Expand All @@ -32,7 +32,7 @@ end

## Retrieve all the records

List all the records available in your Dreamhost account, accross all the zones:
List all the records available in your Dreamhost account, across all the zones:

```ruby
dh.records.each do |r|
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/glesys/models/compute/ip.rb
Expand Up @@ -34,7 +34,7 @@ def release
)
end

# Add an ip-adress to the server.
# Add an ip-address to the server.
def attach(server)
requires :ip
server = server.serverid if server.is_a?(Fog::Compute::Glesys::Server)
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/go_grid/requests/compute/grid_image_get.rb
Expand Up @@ -8,7 +8,7 @@ class Real
# * options<~Hash>:
# * 'id'<~String> - ID of the image
# * 'name'<~String> - Name of the image
# * 'image'<~String> - ID(s) or Name(s) of the images to retrive. Can be speicifed multiple times
# * 'image'<~String> - ID(s) or Name(s) of the images to retrieve. Can be speicifed multiple times
#
# ==== Returns
# * response<~Excon::Response>:
Expand Down
4 changes: 2 additions & 2 deletions lib/fog/ibm/core.rb
Expand Up @@ -74,12 +74,12 @@ def hostname
"vhost" + Fog::Mock.random_numbers(3).to_i.to_s + ".fake.compute.ihost.com"
end

# Miliseconds since epoch
# Milliseconds since epoch
def launch_time
(Time.now.tv_sec * 1000).to_i
end

# 1 year from now, in miliseconds since epoch
# 1 year from now, in milliseconds since epoch
def expiry_time
((Time.now.tv_sec + 31556926) * 1000).to_i
end
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/ibm/requests/compute/get_image.rb
Expand Up @@ -25,7 +25,7 @@ class Real
# * 'documentation'<~String>: link to documentation for image
# * 'manifest'<~String>: link to xml manifest file
# * 'description'<~String>: text description of image
# * 'visibility'<~String>: status of visibilty of image. known values so far are "PUBLIC" and "PRIVATE"
# * 'visibility'<~String>: status of visibility of image. known values so far are "PUBLIC" and "PRIVATE"
# * 'platform'<~String>: operating system
# * 'architecture'<~String>: architecture supported by image
# * 'documentation'<~String>: link to documentation for image
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/ibm/requests/compute/get_image_agreement.rb
Expand Up @@ -34,7 +34,7 @@ def get_image_agreement(image_id)
"test, operating system is SUSE Linux Enterprise Server/11 SP1 - English\n\nYour access to and use of the Service, including all selected options, are governed by the terms of the Agreement signed between your Enterprise and IBM. Each Service is also governed by one or more Attachments (including, for example, Image Terms Attachments). Applicable Attachments are part of the Agreement between you and IBM and include Attachments for Services you acquire after the Agreement was signed. The Agreement also references applicable IBM and third party end user license agreements that govern the use of IBM software and operating system software provided as part of an Image.\n\nYou are responsible for complying with the terms of the Agreement (including applicable Attachments) and applicable license agreements. You may review the terms for the Service by 1) obtaining information regarding the Agreement from your Account Administrator and 2) accessing the Asset Catalog to review specific Image Terms and end user license agreements for IBM and third party software provided as part of an Image. ",
"id"=>"20020159",
"attachments"=>
[{"label"=>"Service Description for Developement & Test Service",
[{"label"=>"Service Description for Development & Test Service",
"url"=>
"https://www-147.ibm.com/cloud/enterprise/static/internal_user_agreement.pdf",
"type"=>0},
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/ibm/requests/compute/list_images.rb
Expand Up @@ -26,7 +26,7 @@ class Real
# * 'documentation'<~String>: link to documentation for image
# * 'manifest'<~String>: link to xml manifest file
# * 'description'<~String>: text description of image
# * 'visibility'<~String>: status of visibilty of image. known values so far are "PUBLIC" and "PRIVATE"
# * 'visibility'<~String>: status of visibility of image. known values so far are "PUBLIC" and "PRIVATE"
# * 'platform'<~String>: operating system
# * 'architecture'<~String>: architecture supported by image
# * 'documentation'<~String>: link to documentation for image
Expand Down
4 changes: 2 additions & 2 deletions lib/fog/ibm/requests/storage/create_volume.rb
Expand Up @@ -5,7 +5,7 @@ class Real
# Requests a new Storage Volume be created.
#
# ==== Parameters
# * name<~String> - The alias to use to referance storage volume
# * name<~String> - The alias to use to reference storage volume
# * offeringID<~String> - offering id can be requested from /computecloud/enterprise/api/rest/20100331/offerings/storage
# * format<~String> - filesystem format for volume
# * location<~String> - datacenter location for volume
Expand All @@ -15,7 +15,7 @@ class Real
# === Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * name<~String> - The alias to use to referance storage volume
# * name<~String> - The alias to use to reference storage volume
# * format<~String> - filesystem format for storage
# * location<~String> - datacenter location for storage
# * createdTime<~Integer> - Epoch time of creation
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/linode/requests/dns/domain_list.rb
Expand Up @@ -11,7 +11,7 @@ class Real
# * response<~Excon::Response>:
# * body<~Array>:
# * DATA<~Array>
# * 'DOMAINID'<~Interger>
# * 'DOMAINID'<~Integer>
# * 'SOA_EMAIL'<~String>
# * 'DESCRIPTION'<~String>
# * 'TTL_SEC'<~String>
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/linode/requests/dns/domain_resource_delete.rb
Expand Up @@ -6,7 +6,7 @@ class Real
#
# ==== Parameters
# * domain_id<~Integer>: id of domain resource belongs to
# * resource_id<~Integer>: id of resouce to delete
# * resource_id<~Integer>: id of resource to delete
#
# ==== Returns
# * response<~Excon::Response>:
Expand Down
14 changes: 7 additions & 7 deletions lib/fog/linode/requests/dns/domain_resource_list.rb
Expand Up @@ -13,17 +13,17 @@ class Real
# * body<~Array>:
# * DATA<~Array>
# * 'PROTOCOL'<~String>: for SRV records. default is UDP
# * 'TTL_SEC'<~Interger>:
# * 'PRIORITY'<~Interger>: for MX and SRV records
# * 'TTL_SEC'<~Integer>:
# * 'PRIORITY'<~Integer>: for MX and SRV records
# * 'TYPE'<~String>: One of: NS, MX, A, AAAA, CNAME, TXT, or SRV
# * 'TARGET'<~String>: When Type=MX the hostname. When Type=CNAME the target of the alias.
# When Type=TXT the value of the record. When Type=A or AAAA the token
# of '[remote_addr]' will be substituted with the IP address of the request.
# * 'WEIGHT'<~Interger>:
# * 'RESOURCEID'<~Interger>: ID of the resource record
# * 'PORT'<~Interger>:
# * 'DOMAINID'<~Interger>: ID of the domain that this record belongs to
# * 'NAME'<~Interger>: The hostname or FQDN. When Type=MX, the subdomain to delegate to
# * 'WEIGHT'<~Integer>:
# * 'RESOURCEID'<~Integer>: ID of the resource record
# * 'PORT'<~Integer>:
# * 'DOMAINID'<~Integer>: ID of the domain that this record belongs to
# * 'NAME'<~Integer>: The hostname or FQDN. When Type=MX, the subdomain to delegate to
def domain_resource_list(domain_id, resource_id = nil)
query = { :api_action => 'domain.resource.list', :domainID => domain_id }
if resource_id
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/linode/requests/dns/domain_resource_update.rb
Expand Up @@ -6,7 +6,7 @@ class Real
#
# ==== Parameters
# * domain_id<~Integer>: limit the list to the domain ID specified
# * resource_id<~Integer>: id of resouce to delete
# * resource_id<~Integer>: id of resource to delete
# * options<~Hash>
# * type<~String>: One of: NS, MX, A, AAAA, CNAME, TXT, or SRV
# * name<~String>: The hostname or FQDN. When Type=MX the subdomain to delegate to the
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/opennebula/README.md
Expand Up @@ -23,7 +23,7 @@ General proceeding:
* Connect to one-rpc
* create new vm object
* fetch a template/flavor from one (this template should be predefined)
* assigne the flavor/template to the vm
* assign the flavor/template to the vm
* change the attributes of this flavor/template (name, cpu, memory, nics....)
* save/instantiate the vm

Expand Down
12 changes: 6 additions & 6 deletions lib/fog/opennebula/requests/compute/list_groups.rb
Expand Up @@ -21,16 +21,16 @@ def list_groups(filter = {})
#}

grouppool.each do |group|
filter_missmatch = false
filter_mismatch = false

unless (filter.empty?)
filter.each do |k,v|
if group["#{k.to_s.upcase}"] && group["#{k.to_s.upcase}"] != v.to_s
filter_missmatch = true
filter_mismatch = true
break
end
end
next if filter_missmatch
next if filter_mismatch
end
groups << {:id => group["ID"], :name => group["NAME"]}
end
Expand All @@ -47,16 +47,16 @@ def list_groups(filter={})

grouppool = [net1, net2]
grouppool.each do |group|
filter_missmatch = false
filter_mismatch = false

unless (filter.empty?)
filter.each do |k,v|
if group["#{k.to_s.upcase}"] && group["#{k.to_s.upcase}"] != v.to_s
filter_missmatch = true
filter_mismatch = true
break
end
end
next if filter_missmatch
next if filter_mismatch
end
groups << {:id => group["ID"], :name => group["NAME"]}
end
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/openvz/README.md
Expand Up @@ -11,7 +11,7 @@ It allows you to specify connect command to connect to the openvz server, if it'
- This is specified as a string where the '@command@' placeholder will be replaced when the commands are executed
- The @command@ will contain double quotes, therefore make sure you use single quotes only inside the placeholder

To connect to a remote ssh server myopenvzserver and sudo excute the command
To connect to a remote ssh server myopenvzserver and sudo execute the command

openvz = ::Fog::Compute.new( {
:provider => 'openvz',
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/rage4/requests/dns/list_domains.rb
Expand Up @@ -2,7 +2,7 @@ module Fog
module DNS
class Rage4
class Real
# Get the lsit of all domains for your account.
# Get the list of all domains for your account.
# ==== Parameters
#
# ==== Returns
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/vcloud/compute.rb
Expand Up @@ -19,7 +19,7 @@ def check_href!(opts = {})
msg = ":href missing, call with a :href pointing to #{if opts[:message]
opts[:message]
elsif opts[:parent]
"the #{opts[:parent]} whos #{self.class.to_s.split('::').last.downcase} you want to enumerate"
"the #{opts[:parent]} whose #{self.class.to_s.split('::').last.downcase} you want to enumerate"
else
"the resource"
end}"
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/vcloud_director/README.md
Expand Up @@ -37,7 +37,7 @@ When listing a collection (eg: `vdc.vapps`), lazy load will be used by default
to improve the performance, otherwise it will make as many requests as items
are in the collection.

You can disable lazy load using the explict caller and passing a *false*
You can disable lazy load using the explicit caller and passing a *false*
option: `vdc.vapps.all(false)`.

Attributes showing the value **NonLoaded** will be populated when accessing the
Expand Down
Expand Up @@ -54,7 +54,7 @@ def generate_xml
xml.FenceMode configuration[:FenceMode] if configuration[:FenceMode]
xml.RetainNetInfoAcrossDeployments configuration[:RetainNetInfoAcrossDeployments] if configuration[:RetainNetInfoAcrossDeployments]
}
end #Configuraton
end #Configuration
xml.IsDeployed configuration[:IsDeployed] if configuration[:IsDeployed]
}
end
Expand Down
4 changes: 2 additions & 2 deletions lib/fog/vcloud_director/requests/compute/post_compose_vapp.rb
Expand Up @@ -15,9 +15,9 @@ class Real
# @option options [Boolean] :deploy Used to specify whether to deploy
# the vApp, if not set default value is true.
# @option options [String] :name Used to identify the vApp.
# @option options [String] :networkName Used to conect the vApp and VMs to a VDC network, which has
# @option options [String] :networkName Used to connect the vApp and VMs to a VDC network, which has
# to exist beforehand.
# @option options [String] :networkHref Used to conect the vApp and VMs to a VDC network, which has
# @option options [String] :networkHref Used to connect the vApp and VMs to a VDC network, which has
# to exist beforehand.
# @option options [String] :fenceMode Used to configure the network Mode (briged, isolated).
# @option options [String] :source_vms Array with VMs to be used to compose the vApp, each containing -
Expand Down
Expand Up @@ -17,7 +17,7 @@ class Real
# @return [Excon::Response]
# * body<~Hash>:
# @see https://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/operations/POST-ConfigureEdgeGatewayServices.html
# vCloud API Documentaion
# vCloud API Documentation
# @since vCloud API version 5.1
def post_configure_edge_gateway_services(id, configuration)
body = Fog::Generators::Compute::VcloudDirector::EdgeGatewayServiceConfiguration.new(configuration).generate_xml
Expand Down
2 changes: 1 addition & 1 deletion tests/fogdocker/requests/compute/container_commit_tests.rb
Expand Up @@ -10,7 +10,7 @@
test("should have Image id") { response.include? 'id'}
end

test("Delete Commited Image") do
test("Delete Committed Image") do
result = compute.image_delete(:id=>response['id'])
test("should have a deleted message") {result.include?('Deleted')}
end
Expand Down
2 changes: 1 addition & 1 deletion tests/fogdocker/requests/compute/image_search_tests.rb
Expand Up @@ -6,6 +6,6 @@
response = compute.image_search('term' => 'test')
test("should be a kind of Array") { response.kind_of? Array}
test("Array elements should be a kind of Hash") { response.first.kind_of? Hash}
test("response elemetns should have a name") { !response.first['name'].nil? && !response.first['name'].empty? }
test("response elements should have a name") { !response.first['name'].nil? && !response.first['name'].empty? }
end
end
2 changes: 1 addition & 1 deletion tests/helpers/model_helper.rb
Expand Up @@ -22,7 +22,7 @@ def model_tests(collection, params = {}, mocks_implemented = true)

# Generates a unique identifier with a random differentiator.
# Useful when rapidly re-running tests, so we don't have to wait
# serveral minutes for deleted objects to disappear from the API
# several minutes for deleted objects to disappear from the API
# E.g. 'fog-test-1234'
def uniq_id(base_name = 'fog-test')
# random_differentiator
Expand Down
2 changes: 1 addition & 1 deletion tests/opennebula/requests/compute/vm_disk_snapshot_test.rb
Expand Up @@ -27,7 +27,7 @@
img_id = compute.vm_disk_snapshot(vm.id, 0, 'fogtest-'+name_base.to_s)
test("Image ID of created snapshot should be a kind of Fixnum") { img_id.is_a? Fixnum }
(1..5).each do # wait maximum 5 seconds
sleep(1) # The delay is needed for some reason between issueing disk-snapshot and shutdown
sleep(1) # The delay is needed for some reason between issuing disk-snapshot and shutdown
images = compute.image_pool( { :mine => true, :id => img_id } )
test("Got Image with ID=#{img_id}") { images.kind_of? Array }
if images[0].state == 4 # LOCKED, it is normal we must shutdown VM for image to go into READY state
Expand Down
6 changes: 3 additions & 3 deletions tests/vcloud_director/models/compute/vapp_life_cycle_tests.rb
Expand Up @@ -37,7 +37,7 @@
tests("#enabled").returns(true) { customization.enabled }
end

tests("Compute::VcloudDirector | vm", ['doble the disk size']) do
tests("Compute::VcloudDirector | vm", ['double the disk size']) do
disk = vm.disks.get_by_name('Hard disk 1')
tests("#disk_size").returns(Fixnum) { disk.capacity.class}
new_size = disk.capacity * 2
Expand All @@ -54,15 +54,15 @@
tests("hard disk 2 doesn't exist anymore").returns(nil) { vm.disks.get_by_name('Hard disk 2') }
end

tests("Compute::VcloudDirector | vm", ['doble the memory size']) do
tests("Compute::VcloudDirector | vm", ['double the memory size']) do
tests("#memory").returns(Fixnum) { vm.memory.class}
new_size = vm.memory * 2
vm.memory = new_size
vm.reload
tests("#memory is now doubled").returns(new_size) { vm.memory }
end

tests("Compute::VcloudDirector | vm", ['doble the cpu size']) do
tests("Compute::VcloudDirector | vm", ['double the cpu size']) do
tests("#cpu").returns(Fixnum) { vm.cpu.class}
new_size = vm.cpu * 2
vm.cpu = new_size
Expand Down
2 changes: 1 addition & 1 deletion tests/vcloud_director/requests/compute/query_tests.rb
Expand Up @@ -11,7 +11,7 @@
end
end

# for each queriable type, query and check that each available format
# for each queryable type, query and check that each available format
# returns a result that matches the base schema
#
@query_list[:Link].select do |link|
Expand Down

0 comments on commit ebc10c8

Please sign in to comment.