Class: Canals::Cli::Setup

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/canals/cli/setup.rb

Instance Method Summary collapse

Instance Method Details

#bind_address(bind) ⇒ Object



26
27
28
29
# File 'lib/canals/cli/setup.rb', line 26

def bind_address(bind)
  Canals.config[:bind_address] = bind
  Canals.config.save!
end

#completionObject



20
21
22
23
# File 'lib/canals/cli/setup.rb', line 20

def completion
  install_completion
  say "Bash completion script upgraded, use `source #{Canals::Tools::Completion.cmp_file}` to reload it", :red
end

#wizardObject



11
12
13
14
15
16
17
# File 'lib/canals/cli/setup.rb', line 11

def wizard
  say "Welcome to the Canals Setup Wizard!", :green
  setup_first_environment
  setup_first_tunnel
  check_install_completion
  say "Setup complete. Thanks! :)", :green
end