#!/usr/bin/env ruby

if RUBY_VERSION < '2.0.0'
  abort("fastlane requires Ruby 2.0.0 or higher")
end

def self.windows?
  # taken from: https://stackoverflow.com/a/171011/1945875
  (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
end

require "fastlane/cli_tools_distributor"

if Fastlane::CLIToolsDistributor.running_version_command?
  # This will print out the fastlane binary path right above the
  # version number. Very often, users are not aware they have
  # e.g. bundled fastlane installed
  puts("fastlane installation at path:")
  puts(File.expand_path(__FILE__))
  puts("-----------------------------")
end

Fastlane::CLIToolsDistributor.take_off
