Method: XcodePages.print_env

Defined in:
lib/XcodePages.rb

Prints the environment. Xcode passes many useful pieces of information via the Unix environment.

This can be useful for testing. Add an external build target to Xcode. Make the Build Tool equal to /bin/sh and make the arguments equal to:

-c "$HOME/.rvm/bin/rvm-auto-ruby -r XcodePages -e XcodePages.print_env"

and you will see all the Unix environment variables. This assumes that you are using RVM in your local account to manage Ruby.



18
19
20
# File 'lib/XcodePages.rb', line 18

def self.print_env
  ENV.each { |key, value| puts "#{key}=#{value}" }
end