Sha256: 43ff8277fb29942960461d6c5d4778c781b86a82f18e2edbf21a86872f4171bc

Contents?: true

Size: 1.09 KB

Versions: 10

Compression:

Stored size: 1.09 KB

Contents

# frozen_string_literal: true

module Takelage
  # takelage 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

10 entries across 10 versions & 1 rubygems

Version Path
takelage-0.33.1 lib/takelage/git/check/cli.rb
takelage-0.32.4 lib/takelage/git/check/cli.rb
takelage-0.32.3 lib/takelage/git/check/cli.rb
takelage-0.32.1 lib/takelage/git/check/cli.rb
takelage-0.32.0 lib/takelage/git/check/cli.rb
takelage-0.31.0 lib/takelage/git/check/cli.rb
takelage-0.30.6 lib/takelage/git/check/cli.rb
takelage-0.30.5 lib/takelage/git/check/cli.rb
takelage-0.30.1 lib/takelage/git/check/cli.rb
takelage-0.30.0 lib/takelage/git/check/cli.rb