openshifter 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ ## 0.3
2
+
3
+ * clean build hook
4
+ * preliminary support for Torquebox
5
+
1
6
  ## 0.2
2
7
 
3
8
  * remote installs
@@ -1,3 +1,3 @@
1
1
  module OpenShifter
2
- VERSION = '0.3' unless const_defined?(:VERSION)
2
+ VERSION = '0.4' unless const_defined?(:VERSION)
3
3
  end
@@ -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(ENV['OPENSHIFT_DATA_DIR'], 'jruby', 'torquebox', "gems")
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")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openshifter
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: