class Pod::Validator

Public Instance Methods

_xcodebuild(command, raise_on_failure = false) click to toggle source
# File lib/cocoapods-packager-ext/ext/validator.rb, line 6
def _xcodebuild(command, raise_on_failure = false)
  begin
    _xcodebuild_t(command, raise_on_failure)
  rescue => e
    if ENV['PUSH_BACKUP_PATH']
      for item in command
        if item.include?(".xcworkspace")
          # puts command.join(' ')
          path = Pathname.new(item).parent
          puts path
          `mv #{path} #{ENV['PUSH_BACKUP_PATH']}`
        end
      end
    end
    raise e
  end
end
Also aliased as: _xcodebuild_t
_xcodebuild_t(command, raise_on_failure = false)
Alias for: _xcodebuild