Class: GitTopic::Commands::Edit
- Inherits:
-
Object
- Object
- GitTopic::Commands::Edit
- Defined in:
- lib/git_topic/commands/edit.rb
Overview
edit command edits branch description
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(topic_name) ⇒ Edit
constructor
A new instance of Edit.
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
#execute ⇒ Object
10 11 12 |
# File 'lib/git_topic/commands/edit.rb', line 10 def execute system("git branch --edit-description #{@topic_name}") end |