Class: GrokCLI::Docker::Stop
- Inherits:
-
Object
- Object
- GrokCLI::Docker::Stop
- Defined in:
- lib/grok_cli/docker/stop.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(config = Configuration.new) ⇒ Stop
constructor
A new instance of Stop.
Constructor Details
#initialize(config = Configuration.new) ⇒ Stop
Returns a new instance of Stop.
3 4 5 |
# File 'lib/grok_cli/docker/stop.rb', line 3 def initialize(config = Configuration.new) @config = config end |
Instance Method Details
#execute ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/grok_cli/docker/stop.rb', line 7 def execute system <<~CMD docker-machine stop #{@config.machine_name} CMD end |