Class: Takelage::GitCheck

Inherits:
SubCommandBase show all
Includes:
ConfigModule, GitCheckBit, GitCheckClean, 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 GitCheckBit

#git_check_bit

Methods included from GitCheckClean

#git_check_clean

Methods included from ConfigModule

#config, #configured?, #initialize_config

Methods included from SystemModule

#command_available_else_error?, #command_available_else_warn?, #hash_to_yaml, #read_yaml_erb_file, #read_yaml_file, #rm_fr, #run, #run_and_capture, #run_and_exit, #run_and_fork, #try

Methods included from LoggingModule

#initialize_logging, #log

Methods inherited from SubCommandBase

banner, subcommand_prefix

Instance Method Details

#bitObject

Check if we are on the git bit branch.



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

def bit
  exit git_check_bit
end

#cleanObject

Check if the git workspace is clean.



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

def clean
  exit git_check_clean
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