Class: Heighliner::Cmds::Down

Inherits:
Heighliner::Cli show all
Defined in:
lib/heighliner/cmds/down.rb

Instance Attribute Summary

Attributes inherited from Heighliner::Cli

#use_steerfile

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

#option, #options

Constructor Details

This class inherits a constructor from Heighliner::Cli

Instance Method Details

#execute(_opts) ⇒ Object



14
15
16
17
18
# File 'lib/heighliner/cmds/down.rb', line 14

def execute(_opts)
  stop_db
  stop_app
  delete_db_volume
end

#usageObject



6
7
8
9
10
11
12
# File 'lib/heighliner/cmds/down.rb', line 6

def usage
  <<~EOS
    Stops and removes your app and database containers, and deletes the database volume. This does **not** affect the shared infrastructure (nginx, DNS, Chrome) — use \`heighliner shutdown\` for that.

    USAGE: heighliner down
  EOS
end