1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

indenting the files

This commit is contained in:
Patrick Debois 2011-08-08 15:30:09 -06:00
parent dc54cf6bbc
commit b9873f50f0
7 changed files with 376 additions and 376 deletions

View file

@ -50,7 +50,7 @@ module Fog
def get_by_name(name)
pool=connection.lookup_storage_pool_by_name(name)
return pool
# new(:raw => pool)
# new(:raw => pool)
end
end #class

View file

@ -259,7 +259,7 @@ module Fog
# TODO: check if this files exists
# Check if it is readable
command="grep #{mac} /var/log/arpwatch.log |cut -d ':' -f 4-| cut -d ' ' -f 4"
# command="grep #{mac} /var/lib/arpwatch/arp.dat|cut -f 2|tail -1"
# command="grep #{mac} /var/lib/arpwatch/arp.dat|cut -f 2|tail -1"
# TODO: we need to take the time into account, when IP's are re-allocated, we might be executing
# On the wrong host
@ -381,8 +381,8 @@ module Fog
commands = [
%{mkdir .ssh},
# %{passwd -l #{username}}, #Not sure if we need this here
# %{echo "#{MultiJson.encode(attributes)}" >> ~/attributes.json}
# %{passwd -l #{username}}, #Not sure if we need this here
# %{echo "#{MultiJson.encode(attributes)}" >> ~/attributes.json}
]
if public_key
commands << %{echo "#{public_key}" >> ~/.ssh/authorized_keys}
@ -450,4 +450,4 @@ module Fog
end
end
end
end

View file

@ -53,14 +53,14 @@ module Fog
def get_by_uuid(uuid)
server=connection.lookup_domain_by_uuid(uuid)
return server
# new(:raw => machine)
# new(:raw => machine)
end
# Retrieve the server by name
def get_by_name(name)
server=connection.lookup_domain_by_name(name)
return server
# new(:raw => machine)
# new(:raw => machine)
end
end #class

View file

@ -19,7 +19,7 @@ module Fog
attribute :xml
attribute :template_options
# attribute :key
# attribute :key
attribute :path
attribute :name
attribute :capacity
@ -54,8 +54,8 @@ module Fog
# Takes a pool and either uses :xml or :template_options->xml to create the volume
def save
# requires :xml
# requires :poolname
# requires :xml
# requires :poolname
if poolname
# :disk_type => "raw",
@ -176,4 +176,4 @@ module Fog
end
end
end
end