#!/usr/bin/env ruby

if $0 == __FILE__ && !ENV['COCOAPODS_NO_BUNDLER']
  ENV['BUNDLE_GEMFILE'] = File.expand_path('../../Gemfile', __FILE__)
  require "rubygems"
  require "bundler/setup"
  $:.unshift File.expand_path('../../lib', __FILE__)
elsif ENV['COCOAPODS_NO_BUNDLER']
  require "rubygems"
  gem "cocoapods"
end

if (ENV['CP_STDOUT_SYNC'] == 'TRUE')
  STDOUT.sync = true
end

require 'cocoapods'

Pod::Command.run(ARGV)
