Class: Redmine::Commands::Stop

Inherits:
Object
  • Object
show all
Defined in:
lib/redmine/commands/stop.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Stop

Returns a new instance of Stop.



4
5
6
# File 'lib/redmine/commands/stop.rb', line 4

def initialize(args)
  @args = args
end

Instance Method Details

#executeObject



8
9
10
11
12
13
14
15
# File 'lib/redmine/commands/stop.rb', line 8

def execute
  shell.execute(
    "docker stop redmine-run__#{@args.instance_name}"
  )
  shell.execute(
    "docker rm redmine-run__#{@args.instance_name}"
  )
end