raystool 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- version: 1.2.6
1
+ version: 1.2.7
@@ -101,6 +101,7 @@ module Rays
101
101
  require 'rays/models/appmodule/portlet'
102
102
  require 'rays/models/appmodule/servicebuilder'
103
103
  require 'rays/models/appmodule/ext'
104
+ require 'rays/models/appmodule/ear'
104
105
  require 'rays/models/appmodule/ejb'
105
106
  require 'rays/models/appmodule/hook'
106
107
  require 'rays/models/appmodule/theme'
@@ -159,8 +159,9 @@ class RaysCommand < Clamp::Command
159
159
 
160
160
  def execute
161
161
  modules = []
162
- if type.nil? and !name.nil? and !'ear'.eql? type
163
- raise RaysException.new("Please specify name for #{type}")
162
+ if !type.nil? and name.nil? and !'ear'.eql? type
163
+ $log.error "Please specify the name of #{type}"
164
+ return
164
165
  end
165
166
 
166
167
  if 'ear'.eql? type
@@ -193,8 +194,9 @@ class RaysCommand < Clamp::Command
193
194
 
194
195
  def execute
195
196
  modules = []
196
- if type.nil? and !name.nil? and !'ear'.eql? type
197
- raise RaysException.new("Please specify name for #{type}")
197
+ if !type.nil? and name.nil? and !'ear'.eql? type
198
+ $log.error "Please specify the name of #{type}"
199
+ return
198
200
  end
199
201
 
200
202
  if 'ear'.eql? type
@@ -164,6 +164,9 @@ module Rays
164
164
  end
165
165
 
166
166
  def path
167
+ if 'ear'.eql? type
168
+ return self.class.base_path
169
+ end
167
170
  File.join(self.class.base_path, @name)
168
171
  end
169
172
 
@@ -68,7 +68,7 @@ module Rays
68
68
  unless module_class.nil?
69
69
  base_path = module_class.base_path
70
70
  in_directory(base_path) do
71
- if File.exists?(File.join(base_path, "#{name}/.module")) or 'ee-container'.eql? name
71
+ if File.exists?(File.join(base_path, "#{name}/.module")) or 'application'.eql? name
72
72
  app_module = module_class.new(name)
73
73
  end
74
74
  end
@@ -50,6 +50,7 @@ module Rays
50
50
  @updaters[Gem::Version.create('1.2.4')] = 'update_1_2_4'
51
51
  @updaters[Gem::Version.create('1.2.5')] = 'update_1_2_5'
52
52
  @updaters[Gem::Version.create('1.2.6')] = 'update_1_2_6'
53
+ @updaters[Gem::Version.create('1.2.6')] = 'update_1_2_7'
53
54
  end
54
55
 
55
56
  def check
@@ -133,6 +134,10 @@ module Rays
133
134
  $log.info "Update info: added ear packaging"
134
135
  end
135
136
 
137
+ def update_1_2_7
138
+ $log.info "Update info: fixed ear packaging bugs"
139
+ end
140
+
136
141
  def sync_version version
137
142
  @rays_content.properties['version'] = version.to_s
138
143
  @rays_content.write
@@ -47,7 +47,7 @@ module Rays
47
47
  end
48
48
 
49
49
  # EAR deployer
50
- class EJBDeploy < BaseWorker
50
+ class EARDeploy < BaseWorker
51
51
  register :deployer, :ear
52
52
 
53
53
  include Singleton
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raystool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-17 00:00:00.000000000 Z
12
+ date: 2012-08-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clamp
16
- requirement: &85713630 !ruby/object:Gem::Requirement
16
+ requirement: &78910310 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *85713630
24
+ version_requirements: *78910310
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rsolr
27
- requirement: &85713410 !ruby/object:Gem::Requirement
27
+ requirement: &78910090 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *85713410
35
+ version_requirements: *78910090
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: colorize
38
- requirement: &85713200 !ruby/object:Gem::Requirement
38
+ requirement: &78909880 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *85713200
46
+ version_requirements: *78909880
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: net-ssh
49
- requirement: &85712990 !ruby/object:Gem::Requirement
49
+ requirement: &78909670 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *85712990
57
+ version_requirements: *78909670
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: highline
60
- requirement: &85712780 !ruby/object:Gem::Requirement
60
+ requirement: &78909460 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *85712780
68
+ version_requirements: *78909460
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: safe_shell
71
- requirement: &85712570 !ruby/object:Gem::Requirement
71
+ requirement: &78909250 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *85712570
79
+ version_requirements: *78909250
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: nokogiri
82
- requirement: &85712360 !ruby/object:Gem::Requirement
82
+ requirement: &78909040 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *85712360
90
+ version_requirements: *78909040
91
91
  description: Command line tool to create and manage liferay projects
92
92
  email: dmitri.carpov@gmail.com
93
93
  executables: