Class: Dip::Commands::DNS::Down
- Inherits:
-
Dip::Command
- Object
- Dip::Command
- Dip::Commands::DNS::Down
- Defined in:
- lib/dip/commands/dns.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
Returns a new instance of Down.
38 39 40 |
# File 'lib/dip/commands/dns.rb', line 38 def initialize(name:) @name = name end |
Instance Method Details
#execute ⇒ Object
42 43 44 45 |
# File 'lib/dip/commands/dns.rb', line 42 def execute exec_subprocess("docker", "stop #{@name}", panic: false, out: File::NULL, err: File::NULL) exec_subprocess("docker", "rm -v #{@name}", panic: false, out: File::NULL, err: File::NULL) end |