Class: PushMerge

Inherits:
Object
  • Object
show all
Defined in:
lib/github_merge/push.rb

Instance Method Summary collapse

Constructor Details

#initialize(config, options) ⇒ PushMerge

Returns a new instance of PushMerge.



3
4
5
6
# File 'lib/github_merge/push.rb', line 3

def initialize(config, options)
  @config = config
  @options = options
end

Instance Method Details

#initialize_githubObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/github_merge/push.rb', line 12

def initialize_github
  api_endpoint = config["host"] || "https://api.github.com"
  oauth_token = config["oauth"]

  Github.new do |config|
    config.endpoint = api_endpoint
    config.oauth_token = oauth_token
    config.adapter = :net_http
  end
end

#push!Object



8
9
10
# File 'lib/github_merge/push.rb', line 8

def push!
  github = initialize_github
end