sushi_fabric 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/sushi_fabric/sushiApp.rb +20 -1
- data/lib/sushi_fabric/version.rb +1 -1
- metadata +2 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# Version = '
|
3
|
+
# Version = '20131115-105530'
|
4
4
|
|
5
5
|
require 'csv'
|
6
6
|
require 'fileutils'
|
@@ -23,6 +23,21 @@ module SushiFabric
|
|
23
23
|
config_file = File.join('./config/environments', mode)
|
24
24
|
if File.exist?(config_file + '.rb')
|
25
25
|
require config_file
|
26
|
+
else
|
27
|
+
FileUtils.mkdir_p File.dirname(config_file)
|
28
|
+
open(config_file+'.rb', "w") do |out|
|
29
|
+
out.print <<-EOF
|
30
|
+
module SushiFabric
|
31
|
+
class Application < Rails::Application
|
32
|
+
# default parameters
|
33
|
+
config.workflow_manager = 'druby://localhost:12345'
|
34
|
+
config.gstore_dir = File.join(Dir.pwd, 'public/gstore/projects')
|
35
|
+
config.sushi_app_dir = Dir.pwd
|
36
|
+
config.scratch_dir = '/tmp/scratch'
|
37
|
+
end
|
38
|
+
end
|
39
|
+
EOF
|
40
|
+
end
|
26
41
|
end
|
27
42
|
|
28
43
|
config = SushiFabric::Application.config
|
@@ -30,6 +45,10 @@ module SushiFabric
|
|
30
45
|
GSTORE_DIR = config.gstore_dir
|
31
46
|
SUSHI_APP_DIR = config.sushi_app_dir
|
32
47
|
SCRATCH_DIR = config.scratch_dir
|
48
|
+
|
49
|
+
unless File.exist?(GSTORE_DIR)
|
50
|
+
FileUtils.mkdir_p GSTORE_DIR
|
51
|
+
end
|
33
52
|
|
34
53
|
# check if there is a sqlite3 database of Ruby on Rails
|
35
54
|
if defined?(::Project)
|
data/lib/sushi_fabric/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sushi_fabric
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|