Class: UnlightCLI::Commands::Update Private

Inherits:
Thor::Group
  • Object
show all
Defined in:
lib/unlight_cli/commands/update.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Update game data

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#stop_serverObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Ensure server is stopped

Since:

  • 0.1.0



16
17
18
# File 'lib/unlight_cli/commands/update.rb', line 16

def stop_server
  system 'docker-compose stop'
end

#updateObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Start reload database

Since:

  • 0.1.0



24
25
26
27
28
# File 'lib/unlight_cli/commands/update.rb', line 24

def update
  # TODO: Prevent use `auth_server` as default
  system 'docker-compose run auth_server update'
  system 'docker-compose rm -f auth_server'
end