lib/travis/cli.rb in travis-1.1.1 vs lib/travis/cli.rb in travis-1.1.2
- old
+ new
@@ -12,10 +12,11 @@
require 'gh'
GH.set(:ssl => Travis::Client::Session::SSL_OPTIONS)
module Travis
module CLI
+ autoload :Token, 'travis/cli/token'
autoload :ApiCommand, 'travis/cli/api_command'
autoload :Command, 'travis/cli/command'
autoload :Console, 'travis/cli/console'
autoload :Disable, 'travis/cli/disable'
autoload :Enable, 'travis/cli/enable'
@@ -38,10 +39,10 @@
autoload :Whoami, 'travis/cli/whoami'
extend self
def windows?
- RUBY_PLATFORM =~ /mswin|mingw/
+ File::ALT_SEPARATOR == "\\"
end
def run(*args)
args, opts = preparse(args)
name = args.shift unless args.empty?