class Object

Public Instance Methods

branch() click to toggle source
# File lib/redk/capn_panda/jira_client.rb, line 47
def branch
  @branch ||= Redk::CapnPanda.git.branches.local.select do |git_branch|
    git_branch.name[/#{self.key}$/]
  end.first
end
checkout(type='issue') click to toggle source
# File lib/redk/capn_panda/jira_client.rb, line 53
def checkout(type='issue')
  Redk::CapnPanda.git.branch("#{type}/#{self.key}").checkout
end
has_branch?() click to toggle source
# File lib/redk/capn_panda/jira_client.rb, line 43
def has_branch?
  @has_branch ||= branch != nil
end
local() click to toggle source
# File lib/redk/capn_panda.rb, line 41
def local
  @local ||= self.select { |b| !b.remote }
end
move_to_in_progress() click to toggle source
# File lib/redk/capn_panda/jira_client.rb, line 57
def move_to_in_progress
  transition = self.transitions.build
  id = transitions.all.first {|e| puts e.name == "To In Progress" }.id
  transition.save!("transition" => {"id" => id})
end