class Redmine::Commands::Stop

Public Class Methods

new(args) click to toggle source
# File lib/redmine/commands/stop.rb, line 4
def initialize(args)
  @args = args
end

Public Instance Methods

execute() click to toggle source
# 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

Private Instance Methods

shell() click to toggle source
# File lib/redmine/commands/stop.rb, line 19
def shell
  @shell ||= Redmine::Utils::System.new
end