module Establish::Helper

Public Class Methods

is_test?() click to toggle source
# File lib/establish/helper.rb, line 16
def self.is_test?
  defined?SpecHelper
end
log() click to toggle source
# File lib/establish/helper.rb, line 6
def self.log
  if is_test?
    @@log ||= Logger.new(STDOUT).tap { |l| l.level = Logger::FATAL }
  else
    @@log ||= Logger.new(STDOUT)
  end

  @@log
end
transporter_path() click to toggle source
# File lib/establish/helper.rb, line 24
def self.transporter_path
  self.xcode_path + '../Applications/Application\ Loader.app/Contents/MacOS/itms/bin/iTMSTransporter'
end
xcode_path() click to toggle source
# File lib/establish/helper.rb, line 20
def self.xcode_path
  `xcode-select -p`.gsub("\n", '') + "/"
end