Class: Redmine::Commands::Shell

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

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Shell

Returns a new instance of Shell.



6
7
8
# File 'lib/redmine/commands/shell.rb', line 6

def initialize(args)
  @args = args
end

Instance Method Details

#executeObject



10
11
12
13
14
# File 'lib/redmine/commands/shell.rb', line 10

def execute
  shell.execute(
    "docker exec -it redmine-run__#{@args.instance_name} /bin/bash"
  )
end