1
0
Fork 0
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:
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 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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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