Sha256: 6d286b17dd67263ebfb3366a0068c78d2bf59050192fc44327872b3d90e94753

Contents?: true

Size: 496 Bytes

Versions: 7

Compression:

Stored size: 496 Bytes

Contents

# encoding: UTF-8

module Tetra
  # tetra patch
  class PatchSubcommand < Tetra::Subcommand
    parameter "[MESSAGE]", "a short patch description", default: "Sources updated"

    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
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tetra-2.0.6 lib/tetra/ui/patch_subcommand.rb
tetra-2.0.5 lib/tetra/ui/patch_subcommand.rb
tetra-2.0.4 lib/tetra/ui/patch_subcommand.rb
tetra-2.0.3 lib/tetra/ui/patch_subcommand.rb
tetra-2.0.2 lib/tetra/ui/patch_subcommand.rb
tetra-2.0.1 lib/tetra/ui/patch_subcommand.rb
tetra-2.0.0 lib/tetra/ui/patch_subcommand.rb