public
Description: RESTful workflow / bpm engine based on Sinatra and OpenWFEru
Homepage: http://openwferu.rubyforge.org
Clone URL: git://github.com/jmettraux/ruote-rest.git
Search Repo:
preparing easy install/deploy
jmettraux (author)
Wed Apr 30 06:51:39 -0700 2008
commit  898ab6c62df9873640272f22592951277197ab56
tree    a6bd1dc926d4e7867b2795f5f5988f36deac8c92
parent  af7ddf7fab42628970e5a0e2bbdbe554b2318a2f
...
8
9
10
11
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
14
15
...
8
9
10
 
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
0
@@ -8,8 +8,24 @@
0
 
0
 To get Ruote and Ruote-Rest :
0
 
0
- git clone git://github.com/jmettraux/ruote.git
0
     git clone git://github.com/jmettraux/ruote-rest.git
0
+
0
+Then
0
+
0
+ cd ruote-rest
0
+ rake install_workflow_engine
0
+
0
+To prepare the development database
0
+
0
+ rake recreate_mysql_db
0
+
0
+Expects a mysql db with a 'root' admin account that has a blank password. Feel free to modify the Rakefile according to your db/preferences.
0
+
0
+(
0
+To prepare the test database
0
+
0
+ rake recreate_mysql_db stage=test
0
+)
0
 
0
 
0
 == dependencies
...
8
9
10
 
11
 
12
13
14
15
16
17
18
 
19
20
21
...
8
9
10
11
12
13
14
15
16
17
18
19
 
20
21
22
23
0
@@ -8,14 +8,16 @@
0
 #require 'rake/rdoctask'
0
 require 'rake/testtask'
0
 
0
+load 'lib/tasks/install_workflow_engine.rake'
0
 
0
+
0
 RUOTE_LIB = "~/ruote/lib"
0
 #SINATRA_LIB = "~/sinatra/lib"
0
 
0
 #
0
 # tasks
0
 
0
-CLEAN.include("work_test", "work_development", "log")
0
+CLEAN.include 'work_test', 'work_development', 'log', 'tmp'
0
 
0
 #task :default => [ :clean, :repackage ]
0
 
...
4
5
6
 
 
7
8
9
...
4
5
6
7
8
9
10
11
0
@@ -4,6 +4,8 @@
0
 $:.unshift "#{dir}/../lib"
0
 $:.unshift "#{dir}/../conf"
0
 
0
+$:.unshift "#{dir}/../vendor" # if any
0
+
0
 #$:.unshift "~/sinatra/lib"
0
 $:.unshift "~/ruote/lib"
0
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
0
@@ -1 +1,56 @@
0
+
0
+require 'fileutils'
0
+
0
+RUFUSES = %w{
0
+ dollar eval lru mnemo scheduler verbs }.collect { |e| "rufus-#{e}" }
0
+
0
+#
0
+# do use either :install_workflow_engine either :install_dependency_gems
0
+# but not both
0
+#
0
+
0
+#
0
+# Installs under vendor/ the latest source of OpenWFEru (and required
0
+# subprojects).
0
+#
0
+task :install_workflow_engine do
0
+
0
+ FileUtils.mkdir "tmp" unless File.exists?("tmp")
0
+
0
+ sh "rm -fR vendor/ruote"
0
+ sh "rm -fR vendor/rufus"
0
+ sh "mkdir vendor"
0
+
0
+ RUFUSES.each { |e| git_clone(e) }
0
+ git_clone "ruote"
0
+
0
+ sh "sudo gem install -y json_pure"
0
+end
0
+
0
+def git_clone (elt)
0
+
0
+ sh "cd tmp && git clone git://github.com/jmettraux/#{elt}.git"
0
+ sh "cp -pR tmp/#{elt}/lib/* vendor/"
0
+ sh "rm -fR tmp/#{elt}"
0
+end
0
+
0
+#
0
+# install OpenWFEru and its dependencies as gems
0
+#
0
+task :gem_install_workflow_engine do
0
+
0
+ GEMS = RUFUSES.dup
0
+
0
+ GEMS << "openwferu"
0
+ GEMS << "openwferu-extras"
0
+
0
+ GEMS << "json_pure"
0
+ #GEMS << "xml_simple"
0
+
0
+ sh "sudo gem install -y #{GEMS.join(' ')}"
0
+
0
+ puts
0
+ puts "installed gems #{GEMS.join(' ')}"
0
+ puts
0
+end

Comments

    No one has commented yet.