9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/carson/runtime/setup.rb', line 9
def setup!( cli_choices: {} )
puts_verbose ""
puts_verbose "[Setup]"
unless inside_git_work_tree?
puts_line "WARN: not a git repository. Skipping remote and branch detection."
return write_setup_config( choices: cli_choices )
end
unless cli_choices.empty?
return write_setup_config( choices: cli_choices )
end
if self.in.respond_to?( :tty? ) && self.in.tty?
interactive_setup!
else
silent_setup!
end
end
|