Class: Redmine::Commands::Shell
- Inherits:
-
Object
- Object
- Redmine::Commands::Shell
- Defined in:
- lib/redmine/commands/shell.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(args) ⇒ Shell
constructor
A new instance of Shell.
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
#execute ⇒ Object
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 |