Project

General

Profile

Is there anyway to create project from command line?

Added by Nitin Jain almost 16 years ago

Hi

Is there anyway to create project, wikipage, repository configuration from command line using a script? I need to find a way to create a project by passing just project name.

Thanks

Nitin


Replies (1)

RE: Is there anyway to create project from command line? - Added by Nitin Jain almost 16 years ago

I have got a basic idea.. Something like this...

ruby ${REDMINE_HOME}/script/runner "Issue.create :tracker_id => 3, :project => Project.find_by_identifier('${PROJECT_NAME}'), :sub
ject => '${SUBJECT}', :description => '${DESCRIPTION}', :author => User.find_by_login('${USER_NAME}'), :start_date => Time.now"

This is for issue creation. I am going to try similar for creating project. Let me give a try.

But probably an API might be a better solution.

Thanks

Nitin

    (1-1/1)