mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Standardise indentation of access modifiers
Done with `rubocop --auto-correct --only AccessModifierIndentation`
This commit is contained in:
parent
2e0b7e545a
commit
0b529294f0
9 changed files with 9 additions and 9 deletions
|
@ -45,7 +45,7 @@ module Fog
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def fields
|
def fields
|
||||||
@json_fields.map{|k,v| field_for_kv(k,v)}.flatten
|
@json_fields.map{|k,v| field_for_kv(k,v)}.flatten
|
||||||
|
|
|
@ -194,7 +194,7 @@ module Fog
|
||||||
response
|
response
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def has_session?
|
def has_session?
|
||||||
@cloudstack_session_id && @cloudstack_session_key
|
@cloudstack_session_id && @cloudstack_session_key
|
||||||
end
|
end
|
||||||
|
|
|
@ -31,7 +31,7 @@ DATA
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def tag(name, value)
|
def tag(name, value)
|
||||||
"<#{name}>#{value}</#{name}>"
|
"<#{name}>#{value}</#{name}>"
|
||||||
|
|
|
@ -31,7 +31,7 @@ module Fog
|
||||||
end
|
end
|
||||||
alias :detach :destroy
|
alias :detach :destroy
|
||||||
|
|
||||||
private
|
private
|
||||||
def server
|
def server
|
||||||
collection.server
|
collection.server
|
||||||
end
|
end
|
||||||
|
|
|
@ -128,7 +128,7 @@ module Fog
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def url_escape(string)
|
def url_escape(string)
|
||||||
string.gsub(/([^ a-zA-Z0-9_.-]+)/n) do
|
string.gsub(/([^ a-zA-Z0-9_.-]+)/n) do
|
||||||
'%' + $1.unpack('H2' * $1.size).join('%').upcase
|
'%' + $1.unpack('H2' * $1.size).join('%').upcase
|
||||||
|
|
|
@ -239,7 +239,7 @@ module Fog
|
||||||
super(@rackspace_endpoint || service_endpoint_url, :rackspace_compute_v1_url)
|
super(@rackspace_endpoint || service_endpoint_url, :rackspace_compute_v1_url)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def deprecation_warnings(options)
|
def deprecation_warnings(options)
|
||||||
Fog::Logger.deprecation("The :rackspace_management_url option is deprecated. Please use :rackspace_compute_v1_url for custom endpoints") if options[:rackspace_management_url]
|
Fog::Logger.deprecation("The :rackspace_management_url option is deprecated. Please use :rackspace_compute_v1_url for custom endpoints") if options[:rackspace_management_url]
|
||||||
|
|
|
@ -51,7 +51,7 @@ module Fog
|
||||||
end
|
end
|
||||||
alias :detach :destroy
|
alias :detach :destroy
|
||||||
|
|
||||||
private
|
private
|
||||||
def server
|
def server
|
||||||
collection.server
|
collection.server
|
||||||
end
|
end
|
||||||
|
|
|
@ -95,7 +95,7 @@ module Fog
|
||||||
@message
|
@message
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
# This contains a slightly modified version of the Hashidator gem
|
# This contains a slightly modified version of the Hashidator gem
|
||||||
# but unfortunately the gem does not cope with Array schemas.
|
# but unfortunately the gem does not cope with Array schemas.
|
||||||
|
|
|
@ -30,7 +30,7 @@ class Brightbox
|
||||||
server
|
server
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def self.select_testing_image_from_api
|
def self.select_testing_image_from_api
|
||||||
images = Fog::Compute[:brightbox].list_images
|
images = Fog::Compute[:brightbox].list_images
|
||||||
raise "No available images!" if images.empty?
|
raise "No available images!" if images.empty?
|
||||||
|
|
Loading…
Add table
Reference in a new issue