Class: GitTopic::Commands::Delete

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

Overview

delete command deletes topic

Instance Method Summary collapse

Constructor Details

#initialize(topic_name) ⇒ Delete

Returns a new instance of Delete.



7
8
9
# File 'lib/git_topic/commands/delete.rb', line 7

def initialize(topic_name)
  @topic_name = topic_name
end

Instance Method Details

#executeObject



11
12
13
# File 'lib/git_topic/commands/delete.rb', line 11

def execute
  system("git config --unset topic.#{@topic_name}")
end