Class: Tetra::PatchSubcommand
- Inherits:
-
Subcommand
- Object
- Clamp::Command
- Subcommand
- Tetra::PatchSubcommand
- Defined in:
- lib/tetra/ui/patch_subcommand.rb
Overview
tetra patch
Instance Method Summary collapse
Methods inherited from Subcommand
#bypass_parsing, #checking_exceptions, #configure_log_level, #ensure_dry_running, #format_path, #print_generation_result, #verbose=, #very_verbose=, #very_very_verbose=
Methods included from Logging
Instance Method Details
#execute ⇒ Object
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(, false) puts "Patch recorded, use \"tetra generate-spec\" to update the specfile" end end end |