Standardise indentation of access modifiers

Done with `rubocop --auto-correct --only AccessModifierIndentation`
This commit is contained in:
Paul Thornthwaite 2014-05-23 02:02:18 +01:00
parent 2e0b7e545a
commit 0b529294f0
9 changed files with 9 additions and 9 deletions

View File

@ -45,7 +45,7 @@ module Fog
}
end
private
private
def fields
@json_fields.map{|k,v| field_for_kv(k,v)}.flatten

View File

@ -194,7 +194,7 @@ module Fog
response
end
private
private
def has_session?
@cloudstack_session_id && @cloudstack_session_key
end

View File

@ -31,7 +31,7 @@ DATA
})
end
private
private
def tag(name, value)
"<#{name}>#{value}</#{name}>"

View File

@ -31,7 +31,7 @@ module Fog
end
alias :detach :destroy
private
private
def server
collection.server
end

View File

@ -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

View File

@ -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]

View File

@ -51,7 +51,7 @@ module Fog
end
alias :detach :destroy
private
private
def server
collection.server
end

View File

@ -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.

View File

@ -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?