class Branchtree::Situation
Attributes
current_branch_name[R]
Public Class Methods
new()
click to toggle source
# File lib/branchtree/situation.rb, line 8 def initialize @current_branch_name = nil end
Public Instance Methods
read()
click to toggle source
# File lib/branchtree/situation.rb, line 12 def read @current_branch_name = cmd.run( "git", "rev-parse", "--abbrev-ref", "HEAD" ).out.chomp end