Sha256: cb2b76458e05a254d3f2b7aba67ce036d6c9408bc10700d9ca10f6826aaeeb04

Contents?: true

Size: 524 Bytes

Versions: 8

Compression:

Stored size: 524 Bytes

Contents

# coding: utf-8
require File.dirname(__FILE__) + '/github/pull_request'
require File.dirname(__FILE__) + '/github/statuses'

module Status
  class Base
    attr_reader :qa_status

    def initialize(qa_status="pending")
      @qa_status = qa_status
      @statuses = Status::Github::Statuses.new(qa_status)
    end

    def update
      puts "Updating..."
      pull = Status::Github::PullRequest.new
      pull.create_pull_request unless pull.pull_request_found?
      @statuses.request
      puts "Done."
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
update_status-0.1.7 lib/status/base.rb
update_status-0.1.6 lib/status/base.rb
update_status-0.1.5 lib/status/base.rb
update_status-0.1.4 lib/status/base.rb
update_status-0.1.3 lib/status/base.rb
update_status-0.1.2 lib/status/base.rb
update_status-0.1.1 lib/status/base.rb
update_status-0.1.0 lib/status/base.rb