Class: GitTopic::Commands::Edit

Inherits:
Object
  • Object
show all
Defined in:
lib/git_topic/commands/edit.rb

Overview

edit command edits branch description

Instance Method Summary collapse

Constructor Details

#initialize(topic_name) ⇒ Edit

Returns a new instance of Edit.



6
7
8
# File 'lib/git_topic/commands/edit.rb', line 6

def initialize(topic_name)
  @topic_name = topic_name
end

Instance Method Details

#executeObject



10
11
12
# File 'lib/git_topic/commands/edit.rb', line 10

def execute
  system("git branch --edit-description #{@topic_name}")
end