class Object

Public Instance Methods

branch() click to toggle source
# File lib/octopando.rb, line 33
def branch
  Octopando.git.branches.local.select do |git_branch|
    git_branch.name[/#{self.key}$/]
  end.first
end
checkout(type='issue') click to toggle source
# File lib/octopando.rb, line 39
def checkout(type='issue')
  Octopando.git.branch("#{type}/#{self.key}").checkout
end
has_branch?() click to toggle source
# File lib/octopando.rb, line 29
def has_branch?
  branch != nil
end
move_to_in_progress() click to toggle source
# File lib/octopando.rb, line 43
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