Class: Kitsune::Kit::Commands::BootstrapDocker

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

Instance Method Summary collapse

Instance Method Details

#executeObject



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

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

  if filled_options[:rollback]
    say "🔄 Rolling back full Docker setup...", :yellow
    rollback_sequence(filled_options)
  else
    say "🐳 Running full Docker setup...", :green
    setup_sequence(filled_options)
  end

  say "🎉 Done!", :green
end