Class: Heighliner::Cmds::Deinit
- Inherits:
-
Heighliner::Cli
- Object
- Heighliner::Cli
- Heighliner::Cmds::Deinit
- Defined in:
- lib/heighliner/cmds/deinit.rb
Instance Attribute Summary
Attributes inherited from Heighliner::Cli
Instance Method Summary collapse
Methods inherited from Heighliner::Cli
all_subcommands_usage, #define_options, #initialize, register, run_command, #set_config, #start_services, #stop_app, #stop_services
Methods included from Heighliner::CliOptions
Constructor Details
This class inherits a constructor from Heighliner::Cli
Instance Method Details
#execute(_opts) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/heighliner/cmds/deinit.rb', line 14 def execute(_opts) down Config.config[:envs].delete(envname) Config.config[:envnames].delete(Config.work_dir) save_config end |
#usage ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/heighliner/cmds/deinit.rb', line 6 def usage <<~EOS Removes the Heighliner environment from \`~/.heighliner/config.yml\`. This also runs \`heighliner down\` to stop and delete your app containers and database volume. It does not delete the \`~/.heighliner/databases/<ENV_NAME>\` directory. USAGE: heighliner deinit EOS end |