Class: PushMerge
- Inherits:
-
Object
- Object
- PushMerge
- Defined in:
- lib/github_merge/push.rb
Instance Method Summary collapse
-
#initialize(config, options) ⇒ PushMerge
constructor
A new instance of PushMerge.
- #initialize_github ⇒ Object
- #push! ⇒ Object
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, ) @config = config @options = end |
Instance Method Details
#initialize_github ⇒ Object
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 |