Class: Takelage::GitCheck

Inherits:
SubCommandBase show all
Includes:
ConfigModule, GitCheckClean, GitCheckMain, GitCheckWorkspace, LoggingModule, SystemModule
Defined in:
lib/takelage/git/check/cli.rb

Overview

takelage git check

Instance Method Summary collapse

Methods included from GitCheckWorkspace

#git_check_workspace

Methods included from GitCheckMain

#git_check_main

Methods included from GitCheckClean

#git_check_clean

Methods included from ConfigModule

#config, #configured?, #initialize_config

Methods included from SystemModule

#hash_to_yaml, #read_yaml_erb_file, #read_yaml_file, #rm_fr, #run, #run_and_exit, #run_and_fork, #try

Methods included from LoggingModule

#initialize_logging, #log

Methods inherited from SubCommandBase

banner, subcommand_prefix

Instance Method Details

#cleanObject

Check if the git workspace is clean.



21
22
23
# File 'lib/takelage/git/check/cli.rb', line 21

def clean
  exit git_check_clean
end

#mainObject

Check if we are on the git main branch.



33
34
35
# File 'lib/takelage/git/check/cli.rb', line 33

def main
  exit git_check_main
end

#workspaceObject

Check if a git workspace exists.



45
46
47
# File 'lib/takelage/git/check/cli.rb', line 45

def workspace
  exit git_check_workspace
end