openshifter 0.3 → 0.4
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/CHANGELOG.md +5 -0
- data/lib/openshifter/version.rb +1 -1
- data/templates/openshift/action_hooks/build +5 -5
- metadata +1 -1
data/CHANGELOG.md
CHANGED
data/lib/openshifter/version.rb
CHANGED
@@ -50,7 +50,7 @@ end
|
|
50
50
|
def setup_torquebox
|
51
51
|
SYS[:torquebox] = File.join(ENV['OPENSHIFT_DATA_DIR'], 'jruby', 'torquebox', "modules-#{CONFIG['torquebox']}")
|
52
52
|
SYS[:torquebox_jruby] = File.join(ENV['OPENSHIFT_DATA_DIR'], 'jruby', 'torquebox', "jruby-#{CONFIG['jruby']}")
|
53
|
-
SYS[:gems] = File.join(
|
53
|
+
SYS[:gems] = File.join(SYS[:torquebox_jruby], 'lib', 'ruby', 'gems', '1.8')
|
54
54
|
SYS[:gemfile_hash] = File.join(ENV['OPENSHIFT_DATA_DIR'], 'jruby', 'torquebox', 'Gemfile.hash')
|
55
55
|
SYS[:libs] = File.join(ENV['OPENSHIFT_DATA_DIR'], 'jruby', 'libs')
|
56
56
|
SYS[:jrack] = File.join(SYS[:libs], "jruby-rack-#{CONFIG['jrack']}.jar")
|
@@ -154,10 +154,7 @@ def create_torquebox
|
|
154
154
|
start_cmd("tar -xzf jruby.tar.gz -C #{File.expand_path('..', SYS[:torquebox_jruby])}")
|
155
155
|
start_cmd("rm jruby.tar.gz")
|
156
156
|
start_cmd("rm -rf #{SYS[:torquebox_jruby]}/share/ri/1.8/system/*")
|
157
|
-
FileUtils.rm(SYS[:gemfile_hash])
|
158
|
-
|
159
|
-
puts '---> Installing Bundler'
|
160
|
-
start_cmd("#{SYS[:torquebox_jruby]}/bin/jruby -S gem install bundler --no-ri --no-rdoc")
|
157
|
+
FileUtils.rm(SYS[:gemfile_hash]) if File.exists?(SYS[:gemfile_hash])
|
161
158
|
end
|
162
159
|
|
163
160
|
unless File.exists?(SYS[:jrack])
|
@@ -175,6 +172,9 @@ def create_torquebox
|
|
175
172
|
unless gemfile == oldhash
|
176
173
|
puts '---> Cleaning gems'
|
177
174
|
FileUtils.rm_rf(SYS[:gems])
|
175
|
+
|
176
|
+
puts '---> Installing Bundler'
|
177
|
+
start_cmd("#{SYS[:torquebox_jruby]}/bin/jruby -S gem install bundler --no-ri --no-rdoc")
|
178
178
|
|
179
179
|
puts "---> Bundling gems"
|
180
180
|
start_cmd("#{SYS[:torquebox_jruby]}/bin/jruby -S bundle install")
|