Skip to content

R-i-c-k-y/worklogs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

worklogs

This is a worklogs plugin for Redmine.

Requirements

Ruby interpreter: 1.9.2, 1.9.3, 2.0.0
Redmine: 2.3.x

Installation

To install the plugin, execute the following commands from the root of your Redmine directory:

cd plugins
git clone https://github.com/IceskYsl/worklogs.git

and then execute the following commands from the root of your Redmine directory:

$ RAILS_ENV=production rake redmine:plugins:migrate

More information on installing Redmine plugins can be found at redmine.org.

After the plugin is installed you will need to restart Redmine for the plugin to be available.

Task

by rake

#day report
RAILS_ENV=production bundle exec rake worklogs:day day=2013-08-01

#week report
RAILS_ENV=production bundle exec rake worklogs:week week=23

Add the task into crontable

[root@smbserver ~]# crontab -l
02 23 * * 1-5 /bin/bash -l -c  /shell/day.sh 
30 14 * * 0 /bin/bash -l -c  /shell/week.sh
[root@smbserver ~]# cat /shell/week.sh
#!/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/ruby/bin
cd /opt/www/redmine/current
RAILS_ENV=production bundle exec rake worklogs:week

[root@smbserver ~]# cat /shell/day.sh 
#!/bin/bash
#source /usr/local/rvm/scripts/rvm
cd /opt/www/redmine/current
RAILS_ENV=production bundle exec rake worklogs:day

Uninstallation

To remove the plugin, from the root of your installation directory do the following:

rake redmine:plugins:migrate NAME=worklogs VERSION=0 RAILS_ENV=production
rm -rf plugins/worklogs
bundle install

Demo

Configure Configure

Configure

demo pic

About

This is a worklogs plugin for Redmine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%