bin/aifield in automateit-0.71226.1 vs bin/aifield in automateit-0.71230

- old
+ new

@@ -27,27 +27,20 @@ #{PROG} myapp#user # Dump the 'myapp' hash contents as YAML #{PROG} -y myapp#user - # Dump the 'myapp' hash contents as XML - #{PROG} -x myapp#user - Options: EOB parser.on("-p", "--project PATH", "Set project path") do |v| opts[:project] = v end parser.on("-Y", "--yaml", "Dump as YAML") do |v| opts[:yaml] = v end - parser.on("-X", "--xml", "Dump as XML") do |v| - opts[:xml] = v - end - parser.on("-a", "--add TAGS", "Add list of space separated tags") do |v| opts[:tags] = [v.split].flatten end parser.on("-v", "--version", "Display version") do |v| @@ -73,13 +66,9 @@ if result.nil? puts result.inspect exit 1 elsif opts[:yaml] puts result.to_yaml - elsif opts[:xml] - require 'active_support/core_ext/hash' - require 'active_support/core_ext/array' - puts result.to_xml else puts result.is_a?(String) ? result : result.inspect end exit 0 end