Class: Dip::Commands::Nginx::Down
- Inherits:
-
Dip::Command
- Object
- Dip::Command
- Dip::Commands::Nginx::Down
- Defined in:
- lib/dip/commands/nginx.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(name:) ⇒ Down
constructor
A new instance of Down.
Methods inherited from Dip::Command
Constructor Details
#initialize(name:) ⇒ Down
39 40 41 |
# File 'lib/dip/commands/nginx.rb', line 39 def initialize(name:) @name = name end |
Instance Method Details
#execute ⇒ Object
43 44 45 46 |
# File 'lib/dip/commands/nginx.rb', line 43 def execute subshell("docker", "stop #{@name}".shellsplit, panic: false, out: File::NULL, err: File::NULL) subshell("docker", "rm -v #{@name}".shellsplit, panic: false, out: File::NULL, err: File::NULL) end |