Class: UnlightCLI::Commands::Update Private
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- UnlightCLI::Commands::Update
- 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
Instance Method Summary collapse
-
#stop_server ⇒ Object
private
Ensure server is stopped.
-
#update ⇒ Object
private
Start reload database.
Instance Method Details
#stop_server ⇒ Object
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
16 17 18 |
# File 'lib/unlight_cli/commands/update.rb', line 16 def stop_server system 'docker-compose stop' end |
#update ⇒ Object
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
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 |