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
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
def fields
|
||||
@json_fields.map{|k,v| field_for_kv(k,v)}.flatten
|
||||
|
|
|
@ -194,7 +194,7 @@ module Fog
|
|||
response
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
def has_session?
|
||||
@cloudstack_session_id && @cloudstack_session_key
|
||||
end
|
||||
|
|
|
@ -31,7 +31,7 @@ DATA
|
|||
})
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
def tag(name, value)
|
||||
"<#{name}>#{value}</#{name}>"
|
||||
|
|
|
@ -31,7 +31,7 @@ module Fog
|
|||
end
|
||||
alias :detach :destroy
|
||||
|
||||
private
|
||||
private
|
||||
def server
|
||||
collection.server
|
||||
end
|
||||
|
|
|
@ -128,7 +128,7 @@ module Fog
|
|||
end
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
def url_escape(string)
|
||||
string.gsub(/([^ a-zA-Z0-9_.-]+)/n) do
|
||||
'%' + $1.unpack('H2' * $1.size).join('%').upcase
|
||||
|
|
|
@ -239,7 +239,7 @@ module Fog
|
|||
super(@rackspace_endpoint || service_endpoint_url, :rackspace_compute_v1_url)
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
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]
|
||||
|
|
|
@ -51,7 +51,7 @@ module Fog
|
|||
end
|
||||
alias :detach :destroy
|
||||
|
||||
private
|
||||
private
|
||||
def server
|
||||
collection.server
|
||||
end
|
||||
|
|
|
@ -95,7 +95,7 @@ module Fog
|
|||
@message
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
# This contains a slightly modified version of the Hashidator gem
|
||||
# but unfortunately the gem does not cope with Array schemas.
|
||||
|
|
|
@ -30,7 +30,7 @@ class Brightbox
|
|||
server
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
def self.select_testing_image_from_api
|
||||
images = Fog::Compute[:brightbox].list_images
|
||||
raise "No available images!" if images.empty?
|
||||
|
|
Loading…
Add table
Reference in a new issue