Class: GGSM::Cli

Inherits:
Thor
  • Object
show all
Includes:
Delete, Finish, Foreach, MR, Merge, Start, Switch, Sync
Defined in:
lib/ggsm.rb

Instance Method Summary collapse

Methods included from MR

#create_mr, #init_check_token, #mr_flow

Methods included from Email

#send_email

Methods included from Token

#check_token

Methods included from Submodule

#check_submodule, #check_submodule_status, #check_un_commit_code, #correct_dir, #foreach_module, #get_current_branch, #get_head_commit, #get_lastest_msg, #get_lastest_msg_not_merge, #get_lastest_msg_of_module, #get_modified_submodule, #get_submodule, #get_submodule_commit, #is_submodule, #tip_contact_author

Methods included from Hooks

#check_hooks, #cp_files, #cp_hooks, #install_billow, #update_hooks

Methods included from Finish

#finish_flow, #get_main_project_msg, #get_module_name, #process_finish

Methods included from Merge

#can_rebase, #merge_flow, #need_rebase, #process_merge, #process_rebase

Methods included from Foreach

#foreach_flow

Methods included from Stash

#stash_pop, #try_stash

Methods included from Delete

#delete_branch, #delete_flow, #delete_local_branch, #delete_remote_branch

Methods included from Switch

#process_switch, #switch_flow

Methods included from Sync

#sync_flow

Methods included from Start

#start_flow

Instance Method Details

#delete(branch) ⇒ Object



60
61
62
63
64
# File 'lib/ggsm.rb', line 60

def delete(branch)
  remote = options[:remote]
  all = options[:all]
  delete_flow(branch, remote, all)
end

#finishObject



42
43
44
45
# File 'lib/ggsm.rb', line 42

def finish
  force = options[:force]
  finish_flow(force)
end

#foreach(*commands) ⇒ Object



67
68
69
# File 'lib/ggsm.rb', line 67

def foreach(*commands)
  foreach_flow(*commands)
end

#merge(branch) ⇒ Object



35
36
37
38
# File 'lib/ggsm.rb', line 35

def merge(branch)
  rebase = options[:rebase]
  merge_flow(branch, rebase)
end

#mr(branch, title) ⇒ Object



48
49
50
# File 'lib/ggsm.rb', line 48

def mr(branch, title)
  mr_flow(branch, title)
end

#start(branch, action = '') ⇒ Object



29
30
31
# File 'lib/ggsm.rb', line 29

def start(branch, action='')
  start_flow(branch, action)
end

#switch(branch) ⇒ Object



53
54
55
# File 'lib/ggsm.rb', line 53

def switch(branch)
  switch_flow(branch)
end

#syncObject



24
25
26
# File 'lib/ggsm.rb', line 24

def sync
  sync_flow
end

#versionObject



72
73
74
# File 'lib/ggsm.rb', line 72

def version
  puts VERSION
end