Module: Carson::Runtime::Setup
- Included in:
- Carson::Runtime
- Defined in:
- lib/carson/runtime/setup.rb
Constant Summary collapse
- WELL_KNOWN_REMOTES =
%w[origin github upstream].freeze
Instance Method Summary collapse
Instance Method Details
#setup! ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/carson/runtime/setup.rb', line 6 def setup! 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: {} ) end if self.in.respond_to?( :tty? ) && self.in.tty? interactive_setup! else silent_setup! end end |