Class: GGSM::Cli

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

Instance Method Summary collapse

Methods included from Finish

#finish_flow, #process_finish

Methods included from Submodule

#check_submodule, #check_submodule_status, #check_un_commit_code, #correct_dir, #foreach_module, #get_current_branch, #get_modified_submodule, #get_submodule, #get_submodule_commit, #tip_contact_author

Methods included from Hooks

#check_hooks, #cp_files, #cp_hooks, #update_hooks

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



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

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

#finishObject



40
41
42
43
# File 'lib/ggsm.rb', line 40

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

#foreach(*commands) ⇒ Object



65
66
67
# File 'lib/ggsm.rb', line 65

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

#merge(branch) ⇒ Object



33
34
35
36
# File 'lib/ggsm.rb', line 33

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

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



27
28
29
# File 'lib/ggsm.rb', line 27

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

#statusObject



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

def status
  foreach('status')
end

#switch(branch) ⇒ Object



46
47
48
# File 'lib/ggsm.rb', line 46

def switch(branch)
  switch_flow(branch)
end

#syncObject



22
23
24
# File 'lib/ggsm.rb', line 22

def sync
  sync_flow
end

#versionObject



70
71
72
# File 'lib/ggsm.rb', line 70

def version
  puts VERSION
end