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.
Files changed (3) hide show
  1. data/bin/redcar +11 -18
  2. data/lib/redcar.rb +6 -1
  3. 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
- if ARGV.include? "install"
20
- require 'redcar'
21
- require 'redcar/installer'
22
- require 'redcar/runner'
23
- installer = Redcar::Installer.new
24
- installer.install
25
- else
26
- SWT_APP_NAME = "Redcar"
27
- Redcar.read_stdin
28
- exit if Redcar.try_to_load_via_drb
29
- require 'redcar'
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.4dev' # also change in the gemspec!
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
  #
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: redcar-dev
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 0.12.4dev
5
+ version: 0.12.6dev
6
6
  platform: java
7
7
  authors:
8
8
  - Daniel Lucraft