Class: Tetra::PatchSubcommand

Inherits:
Subcommand
  • Object
show all
Defined in:
lib/tetra/ui/patch_subcommand.rb

Overview

tetra patch

Instance Method Summary collapse

Instance Method Details

#executeObject



8
9
10
11
12
13
14
15
16
# File 'lib/tetra/ui/patch_subcommand.rb', line 8

def execute
  checking_exceptions do
    project = Tetra::Project.new(".")
    ensure_dry_running(:is_not_in_progress, project) do
      project.commit_sources(message, false)
      puts "Patch recorded, use \"tetra generate-spec\" to update the specfile"
    end
  end
end