lib/travis/cli/api_command.rb in travis-1.8.13.travis.1148.9 vs lib/travis/cli/api_command.rb in travis-1.8.13.travis.1152.9
- old
+ new
@@ -1,6 +1,7 @@
require 'travis/cli'
+require 'travis/tools/github'
module Travis
module CLI
class ApiCommand < Command
include Travis::Client::Methods
@@ -119,12 +120,9 @@
@setup_ennterpise ||= false
!!enterprise_name and not @setup_ennterpise
end
def load_gh
- return if defined? GH
- debug "Loading gh"
- require 'gh'
gh_config = session.config['github']
gh_config &&= gh_config.inject({}) { |h,(k,v)| h.update(k.to_sym => v) }
gh_config ||= {}
gh_config[:ssl] = Travis::Client::Session::SSL_OPTIONS