Sha256: 3d56eff2b3fd1a4a3a27a9018f50c04c5f023b9da691c071f4ffe5303328f867

Contents?: true

Size: 1.07 KB

Versions: 92

Compression:

Stored size: 1.07 KB

Contents

# frozen_string_literal: true

module Takeltau
  # tau git check
  class GitCheck < SubCommandBase
    include LoggingModule
    include SystemModule
    include ConfigModule
    include GitCheckClean
    include GitCheckHg
    include GitCheckWorkspace

    #
    # 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 hg
    #
    desc 'hg', 'Check if we are on the git hg branch'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Check if we are on the git hg branch
    LONGDESC
    # Check if we are on the git hg branch.
    def hg
      exit git_check_hg
    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

92 entries across 92 versions & 1 rubygems

Version Path
takeltau-0.44.14 lib/takeltau/git/check/cli.rb
takeltau-0.44.12 lib/takeltau/git/check/cli.rb
takeltau-0.44.11 lib/takeltau/git/check/cli.rb
takeltau-0.44.8 lib/takeltau/git/check/cli.rb
takeltau-0.44.2 lib/takeltau/git/check/cli.rb
takeltau-0.43.23 lib/takeltau/git/check/cli.rb
takeltau-0.43.21 lib/takeltau/git/check/cli.rb
takeltau-0.43.19 lib/takeltau/git/check/cli.rb
takeltau-0.43.16 lib/takeltau/git/check/cli.rb
takeltau-0.43.15 lib/takeltau/git/check/cli.rb
takeltau-0.43.14 lib/takeltau/git/check/cli.rb
takeltau-0.43.10 lib/takeltau/git/check/cli.rb
takeltau-0.43.6 lib/takeltau/git/check/cli.rb
takeltau-0.43.4 lib/takeltau/git/check/cli.rb
takeltau-0.43.2 lib/takeltau/git/check/cli.rb
takeltau-0.43.1 lib/takeltau/git/check/cli.rb
takeltau-0.42.7 lib/takeltau/git/check/cli.rb
takeltau-0.42.5 lib/takeltau/git/check/cli.rb
takeltau-0.42.4 lib/takeltau/git/check/cli.rb
takeltau-0.42.3 lib/takeltau/git/check/cli.rb