Module: Establish::Helper
- Defined in:
- lib/establish/helper.rb
Class Method Summary collapse
Class Method Details
.is_test? ⇒ Boolean
16 17 18 |
# File 'lib/establish/helper.rb', line 16 def self.is_test? defined?SpecHelper end |
.log ⇒ Object
6 7 8 9 10 11 12 13 14 |
# 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 ⇒ Object
24 25 26 |
# 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 ⇒ Object
20 21 22 |
# File 'lib/establish/helper.rb', line 20 def self.xcode_path `xcode-select -p`.gsub("\n", '') + "/" end |