Class: DNGG::Cli
Class Method Summary
collapse
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, #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
#dd, #start_flow
Class Method Details
.exit_on_failure? ⇒ Boolean
23
24
25
|
# File 'lib/dngg.rb', line 23
def self.exit_on_failure?
true
end
|
Instance Method Details
#delete(branch) ⇒ Object
64
65
66
67
68
|
# File 'lib/dngg.rb', line 64
def delete(branch)
remote = options[:remote]
all = options[:all]
delete_flow(branch, remote, all)
end
|
#finish ⇒ Object
46
47
48
49
|
# File 'lib/dngg.rb', line 46
def finish
force = options[:force]
finish_flow(force)
end
|
#foreach(*commands) ⇒ Object
71
72
73
|
# File 'lib/dngg.rb', line 71
def foreach(*commands)
foreach_flow(*commands)
end
|
#merge(branch) ⇒ Object
option :rebase, :default => false, :type => :boolean, aliases: ‘-r’
39
40
41
42
|
# File 'lib/dngg.rb', line 39
def merge(branch)
rebase = options[:rebase]
merge_flow(branch, rebase)
end
|
#mr(branch, title) ⇒ Object
52
53
54
|
# File 'lib/dngg.rb', line 52
def mr(branch, title)
mr_flow(branch, title)
end
|
#start(branch, action = '') ⇒ Object
33
34
35
|
# File 'lib/dngg.rb', line 33
def start(branch, action='')
start_flow(branch, action)
end
|
#switch(branch) ⇒ Object
57
58
59
|
# File 'lib/dngg.rb', line 57
def switch(branch)
switch_flow(branch)
end
|
#sync ⇒ Object
28
29
30
|
# File 'lib/dngg.rb', line 28
def sync
sync_flow
end
|
#version ⇒ Object
76
77
78
|
# File 'lib/dngg.rb', line 76
def version
puts VERSION
end
|