Last patch fixing whitespaces in code (thanks jayg)
--- client/bin/deltacloudc | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/client/bin/deltacloudc b/client/bin/deltacloudc index b22bb51..53df7bb 100755 --- a/client/bin/deltacloudc +++ b/client/bin/deltacloudc @@ -27,13 +27,13 @@ options = { }
@optparse = OptionParser.new do|opts| - + opts.banner = <<BANNER -Usage: -deltacloudc collection operation [options] +Usage: +deltacloudc collection operation [options]
URL format: -API_URL=http://%5Buser%5D:%5Bpassword%5D@%5Bapi_url%5D%5Bport%5D%5B/uri] +API_URL=http://%5Buser%5D:%5Bpassword%5D@%5Bapi_url%5D%5Bport%5D%5B/uri]
Options: BANNER @@ -59,7 +59,7 @@ def convert_to_plain(xml) yield "-----------------------" if elem.children.size>1 next unless elem.children.size.eql?(1) if not elem.eql?(doc.root) and not elem.name.eql?('text') - yield "#{string_to_width(elem.name, 15)}: #{elem.content.strip}" + yield "#{string_to_width(elem.name, 15)}: #{elem.content.strip}" end end return nil @@ -128,7 +128,6 @@ else options[:params]['image_id'] = options[:image_id] unless options[:image_id].nil? options[:params]['architecture'] = options[:architecture] unless options[:architecture].nil? options[:params]['flavor_id'] = options[:flavor_id] unless options[:flavor_id].nil? - options[:operation] = 'index' if options[:operation].nil? # First guess HTTP method to use method = operations.keys.select { |k| operations[k].include?(options[:operation]) }.first @@ -155,6 +154,4 @@ else end end end - end -