Class: Takeltau::Hg

Inherits:
SubCommandBase show all
Includes:
ConfigModule, GitCheckClean, GitCheckHg, GitCheckWorkspace, GitLib, HgList, HgPull, HgPush, LoggingModule, SystemModule
Defined in:
lib/takeltau/hg/cli.rb

Overview

tau hg

Instance Method Summary collapse

Methods included from HgPush

#hg_push

Methods included from HgPull

#hg_pull

Methods included from HgList

#hg_list

Methods included from GitLib

#git_lib_prepare_git_workspace, #git_lib_push_hg_dirs

Methods included from GitCheckWorkspace

#git_check_workspace

Methods included from GitCheckHg

#git_check_hg

Methods included from GitCheckClean

#git_check_clean

Methods included from ConfigModule

#config, #configured?, #initialize_config

Methods included from SystemModule

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

Methods included from LoggingModule

#initialize_logging, #log

Methods inherited from SubCommandBase

banner, subcommand_prefix

Instance Method Details

#listObject

List hg repos.



25
26
27
28
29
30
# File 'lib/takeltau/hg/cli.rb', line 25

def list
  hgclone = hg_list
  exit false if hgclone == false
  say hgclone
  true
end

#pullObject

Pull hg repos.



40
41
42
# File 'lib/takeltau/hg/cli.rb', line 40

def pull
  exit hg_pull
end

#pushObject

Push hg repos.



52
53
54
# File 'lib/takeltau/hg/cli.rb', line 52

def push
  exit hg_push
end