Sha256: 6feb8e8deeb61d9ee2ecc0a4978078479e0ae8c90fb4c37a74e59b76f9aca3a3

Contents?: true

Size: 513 Bytes

Versions: 10

Compression:

Stored size: 513 Bytes

Contents

module Establish
  module Helper



    def self.log
      if is_test?
        @@log ||= Logger.new(STDOUT).tap { |l| l.level = Logger::FATAL }
      else
        @@log ||= Logger.new(STDOUT)
      end

      @@log
    end

    def self.is_test?
      defined?SpecHelper
    end

    def self.xcode_path
      `xcode-select -p`.gsub("\n", '') + "/"
    end

    def self.transporter_path
      self.xcode_path + '../Applications/Application\ Loader.app/Contents/MacOS/itms/bin/iTMSTransporter'
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
establish-0.0.33 lib/establish/helper.rb
establish-0.0.32 lib/establish/helper.rb
establish-0.0.31 lib/establish/helper.rb
establish-0.0.30 lib/establish/helper.rb
establish-0.0.29 lib/establish/helper.rb
establish-0.0.28 lib/establish/helper.rb
establish-0.0.27 lib/establish/helper.rb
establish-0.0.26 lib/establish/helper.rb
establish-0.0.25 lib/establish/helper.rb
establish-0.0.24 lib/establish/helper.rb