Class: Kitsune::Kit::Commands::InstallDockerEngine

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

Instance Method Summary collapse

Instance Method Details

#createObject



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/kitsune/kit/commands/install_docker_engine.rb', line 17

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

  with_ssh_connection(filled_options) do |ssh|
    perform_setup(ssh)
  end
end

#rollbackObject



30
31
32
33
34
35
36
37
38
39
40
# File 'lib/kitsune/kit/commands/install_docker_engine.rb', line 30

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

  with_ssh_connection(filled_options) do |ssh|
    perform_rollback(ssh)
  end
end