Sha256: f25f5da4f1d66bb8f9407cb9f01e10545d65cb227379cbf555c4939b7c42956e

Contents?: true

Size: 298 Bytes

Versions: 2

Compression:

Stored size: 298 Bytes

Contents

# frozen_string_literal: true

module GitTopic
  module Commands
    # delete command deletes topic
    class Delete
      def initialize(topic_name)
        @topic_name = topic_name
      end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
git_topic-0.4.0 lib/git_topic/commands/delete.rb
git_topic-0.3.3 lib/git_topic/commands/delete.rb