class Kitsune::Kit::Commands::SetupSwap

def create

def create
  if Kitsune::Kit::Defaults.system[:disable_swap]
    say "⚠️ Swap setup is disabled via DISABLE_SWAP=true", :yellow
    return
  end
  filled_options = Kitsune::Kit::OptionsBuilder.build(
    options,
    required: [:server_ip],
    defaults: Kitsune::Kit::Defaults.system.merge(Kitsune::Kit::Defaults.ssh)
  )
  with_ssh_connection(filled_options) do |ssh|
    perform_setup(ssh, filled_options)
  end
end