redcar-dev 0.12.4dev-java → 0.12.6dev-java
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/redcar +11 -18
- data/lib/redcar.rb +6 -1
- metadata +1 -1
data/bin/redcar
CHANGED
@@ -16,21 +16,14 @@ if ARGV.include? '--silent'
|
|
16
16
|
STDERR.reopen STDOUT
|
17
17
|
end
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
Redcar.environment = :user
|
31
|
-
Redcar.log.info("REDCAR #{Redcar::VERSION} start (start time was #{Redcar.process_start_time})")
|
32
|
-
Redcar.spin_up
|
33
|
-
Redcar.load_threaded
|
34
|
-
Redcar.show_splash
|
35
|
-
Redcar.pump
|
36
|
-
end
|
19
|
+
SWT_APP_NAME = "Redcar"
|
20
|
+
Redcar.read_stdin
|
21
|
+
exit if Redcar.try_to_load_via_drb
|
22
|
+
require 'redcar'
|
23
|
+
Redcar.environment = :user
|
24
|
+
Redcar.ensure_user_dir_config
|
25
|
+
Redcar.log.info("REDCAR #{Redcar::VERSION} start (start time was #{Redcar.process_start_time})")
|
26
|
+
Redcar.spin_up
|
27
|
+
Redcar.load_threaded
|
28
|
+
Redcar.show_splash
|
29
|
+
Redcar.pump
|
data/lib/redcar.rb
CHANGED
@@ -13,6 +13,7 @@ require 'regex_replace'
|
|
13
13
|
|
14
14
|
require 'forwardable'
|
15
15
|
require 'uri'
|
16
|
+
require 'fileutils'
|
16
17
|
|
17
18
|
require 'rubygems'
|
18
19
|
|
@@ -55,7 +56,7 @@ end
|
|
55
56
|
#
|
56
57
|
# and so on.
|
57
58
|
module Redcar
|
58
|
-
VERSION = '0.12.
|
59
|
+
VERSION = '0.12.6dev' # also change in the gemspec!
|
59
60
|
VERSION_MAJOR = 0
|
60
61
|
VERSION_MINOR = 12
|
61
62
|
VERSION_RELEASE = 0
|
@@ -209,6 +210,10 @@ module Redcar
|
|
209
210
|
return true if File.directory? user_dir
|
210
211
|
false
|
211
212
|
end
|
213
|
+
|
214
|
+
def self.ensure_user_dir_config
|
215
|
+
FileUtils.mkdir_p(user_dir)
|
216
|
+
end
|
212
217
|
|
213
218
|
# Platform specific ~/.redcar
|
214
219
|
#
|