Class: Takelage::GitCheck
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Takelage::GitCheck
- Includes:
- ConfigModule, GitCheckClean, GitCheckMain, GitCheckWorkspace, LoggingModule, SystemModule
- Defined in:
- lib/takelage/git/check/cli.rb
Overview
takelage git check
Instance Method Summary collapse
-
#clean ⇒ Object
Check if the git workspace is clean.
-
#main ⇒ Object
Check if we are on the git main branch.
-
#workspace ⇒ Object
Check if a git workspace exists.
Methods included from GitCheckWorkspace
Methods included from GitCheckMain
Methods included from GitCheckClean
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
Methods inherited from SubCommandBase
Instance Method Details
#clean ⇒ Object
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 |
#main ⇒ Object
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 |
#workspace ⇒ Object
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 |