lib/jss/api_object.rb in ruby-jss-1.3.3 vs lib/jss/api_object.rb in ruby-jss-1.4.1
- old
+ new
@@ -1356,11 +1356,14 @@
#
# @return [void]
#
def ppx
return nil unless creatable? || updatable?
- REXML::Document.new(rest_xml).write $stdout, 2
+
+ formatter = REXML::Formatters::Pretty.new(2)
+ formatter.compact = true
+ formatter.write(REXML::Document.new(rest_xml), $stdout)
puts
end
# Private Instance Methods
#####################################
@@ -1688,7 +1691,10 @@
require 'jss/api_object/site'
require 'jss/api_object/software_update_server'
require 'jss/api_object/user'
require 'jss/api_object/webhook'
require 'jss/api_object/printer'
+
+### Other
+require 'jss/api_object/app_store_country_codes'
JSS::APIObject.define_identifier_list_methods