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

#merge_flow, #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

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



49
50
51
52
53
# File 'lib/ggsm.rb', line 49

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

#finishObject



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

def finish
  finish_flow
end

#foreach(*commands) ⇒ Object



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

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

#merge(branch) ⇒ Object



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

def merge(branch)
  merge_flow(branch)
end

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



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

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

#statusObject



56
57
58
# File 'lib/ggsm.rb', line 56

def status
  foreach('status')
end

#switch(branch) ⇒ Object



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

def switch(branch)
  switch_flow(branch)
end

#syncObject



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

def sync
  sync_flow
end

#versionObject



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

def version
  puts VERSION
end