Sha256: f8d6f5d41dc5fa2abf98b4bc2f916118729b3af47b8bcd5677960acc0d15d5ac

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 KB

Contents

# frozen_string_literal: true

module Takeltau
  # takeltau git check
  class GitCheck < SubCommandBase
    include LoggingModule
    include SystemModule
    include ConfigModule
    include GitCheckClean
    include GitCheckBit
    include GitCheckWorkspace

    #
    # git check bit
    #
    desc 'bit', 'Check if we are on the git bit branch'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Check if we are on the git bit branch
    LONGDESC
    # Check if we are on the git bit branch.
    def bit
      exit git_check_bit
    end

    #
    # git check clean
    #
    desc 'clean', 'Check if the git workspace is clean'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Check if the git workspace is clean
    LONGDESC
    # Check if the git workspace is clean.
    def clean
      exit git_check_clean
    end

    #
    # git check workspace
    #
    desc 'workspace', 'Check if a git workspace exists'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Check if a git workspace exists
    LONGDESC
    # Check if a git workspace exists.
    def workspace
      exit git_check_workspace
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
takeltau-0.34.15 lib/takeltau/git/check/cli.rb
takeltau-0.34.14 lib/takeltau/git/check/cli.rb
takeltau-0.34.13 lib/takeltau/git/check/cli.rb
takeltau-0.34.12 lib/takeltau/git/check/cli.rb
takeltau-0.34.11 lib/takeltau/git/check/cli.rb
takeltau-0.34.9 lib/takeltau/git/check/cli.rb