Author: jvanzyl
Date: Wed Aug 9 06:09:07 2006
New Revision: 430046
URL: http://svn.apache.org/viewvc?rev=430046&view=rev
Log:
o adding the option to set the workflow scheme as well
Modified:
maven/sandbox/issue/rissue/bin/create_project.rb
Modified: maven/sandbox/issue/rissue/bin/create_project.rb
URL:
http://svn.apache.org/viewvc/maven/sandbox/issue/rissue/bin/create_project.rb?rev=430046&r1=430045&r2=430046&view=diff
==============================================================================
--- maven/sandbox/issue/rissue/bin/create_project.rb (original)
+++ maven/sandbox/issue/rissue/bin/create_project.rb Wed Aug 9 06:09:07 2006
@@ -44,6 +44,7 @@
opt.on( '-l', '--lead=val', String, 'Project Lead' ) { |$lead| }
opt.on( '-s', '--notification-scheme=val', String, 'Project Notification
Scheme' ) { |$notification_scheme| }
opt.on( '-p', '--permission-scheme=val', String, 'Project Permission Scheme'
) { |$permission_scheme| }
+ opt.on( '-w', '--workflow-scheme=val', String, 'Project Workflow Scheme' ) {
|$workflow_scheme| }
end
create.set_execution_block do |args|
# Can't figure out how to get cmdparse to do this for me yet. So doing it
manually for now.
@@ -54,6 +55,7 @@
validate( "lead", $lead )
validate( "notification-scheme", $notification_scheme )
validate( "permission-scheme", $permission_scheme )
+ validate( "workflow-scheme", $workflow_scheme )
puts "Using the following information to create a JIRA project:"
puts " Name: #{$name}"
@@ -63,6 +65,7 @@
puts " Lead: #{$lead}"
puts "Notification Scheme: #{$notification_scheme}"
puts " Permission Scheme: #{$permission_scheme}"
+ puts " Workflow Scheme: #{$workflow_scheme}"
# Now verify that the user wants to continue
puts "Do you want to continue? (Y/N) [Y] "