Class: Kitsune::Kit::Commands::Bootstrap

Inherits:
Thor
  • Object
show all
Defined in:
lib/kitsune/kit/commands/bootstrap.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/kitsune/kit/commands/bootstrap.rb', line 19

def execute
  filled_options = Kitsune::Kit::OptionsBuilder.build(
    options,
    defaults: Kitsune::Kit::Defaults.ssh
  )

  if filled_options[:rollback]
    say "🔄 Rolling back server configurations...", :yellow
    rollback_sequence(filled_options)
  else
    say "🏗️ Setting up server from scratch...", :green
    setup_sequence(filled_options)
  end

  say "🎉 Done!", :green
end