Class: Redmine::Commands::Logs
- Inherits:
-
Object
- Object
- Redmine::Commands::Logs
- Defined in:
- lib/redmine/commands/logs.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(args) ⇒ Logs
constructor
A new instance of Logs.
Constructor Details
#initialize(args) ⇒ Logs
Returns a new instance of Logs.
6 7 8 |
# File 'lib/redmine/commands/logs.rb', line 6 def initialize(args) @args = args end |
Instance Method Details
#execute ⇒ Object
10 11 12 13 14 |
# File 'lib/redmine/commands/logs.rb', line 10 def execute shell.execute( "docker exec -it redmine-run__#{@args.instance_name} /usr/bin/tail -f /var/www/redmine/log/development.log" ) end |