Sha256: de314f5a76ad541a77af4cff4e9295a7330fb893d15768928984c0ec39a201f5

Contents?: true

Size: 1.11 KB

Versions: 22

Compression:

Stored size: 1.11 KB

Contents

# frozen_string_literal: true

module Takelage
  # takelage git check
  class GitCheck < SubCommandBase
    include LoggingModule
    include SystemModule
    include ConfigModule
    include GitCheckClean
    include GitCheckMaster
    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 master
    #
    desc 'master', 'Check if we are on the git master branch'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Check if we are on the git master branch
    LONGDESC
    # Check if we are on the git master branch.
    def master
      exit git_check_master
    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

22 entries across 22 versions & 1 rubygems

Version Path
takelage-0.22.0 lib/takelage/git/check/cli.rb
takelage-0.21.1 lib/takelage/git/check/cli.rb
takelage-0.21.0 lib/takelage/git/check/cli.rb
takelage-0.20.2 lib/takelage/git/check/cli.rb
takelage-0.20.1 lib/takelage/git/check/cli.rb
takelage-0.20.0 lib/takelage/git/check/cli.rb
takelage-0.19.2 lib/takelage/git/check/cli.rb
takelage-0.19.1 lib/takelage/git/check/cli.rb
takelage-0.19.0 lib/takelage/git/check/cli.rb
takelage-0.18.1 lib/takelage/git/check/cli.rb
takelage-0.18.0 lib/takelage/git/check/cli.rb
takelage-0.17.1 lib/takelage/git/check/cli.rb
takelage-0.17.0 lib/takelage/git/check/cli.rb
takelage-0.16.0 lib/takelage/git/check/cli.rb
takelage-0.15.1 lib/takelage/git/check/cli.rb
takelage-0.15.0 lib/takelage/git/check/cli.rb
takelage-0.14.5 lib/takelage/git/check/cli.rb
takelage-0.14.4 lib/takelage/git/check/cli.rb
takelage-0.14.3 lib/takelage/git/check/cli.rb
takelage-0.14.2 lib/takelage/git/check/cli.rb