class BitbucketPullRequest::Opener

Public Class Methods

branch() click to toggle source
# File lib/bitbucket-pull-request/opener.rb, line 21
def self.branch
  Branch.get
end
dest_param() click to toggle source
# File lib/bitbucket-pull-request/opener.rb, line 29
def self.dest_param
  CGI.escape "#{self.path}::master"
end
full_url() click to toggle source
# File lib/bitbucket-pull-request/opener.rb, line 9
def self.full_url
  "#{self.root_url}#{self.path}/#{self.pull_request_path}"
end
open() click to toggle source
# File lib/bitbucket-pull-request/opener.rb, line 5
def self.open
  `open "#{self.full_url}"`
end
path() click to toggle source
# File lib/bitbucket-pull-request/opener.rb, line 17
def self.path
  Remotes.remote_path
end
pull_request_path() click to toggle source
# File lib/bitbucket-pull-request/opener.rb, line 33
def self.pull_request_path
  "pull-request/new?source=#{self.source_param}&dest=#{self.dest_param}"
end
root_url() click to toggle source
# File lib/bitbucket-pull-request/opener.rb, line 13
def self.root_url
  "https://bitbucket.org/"
end
source_param() click to toggle source
# File lib/bitbucket-pull-request/opener.rb, line 25
def self.source_param
  CGI.escape "#{self.path}::#{self.branch}"
end