syncwrap 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,3 +1,11 @@
1
+ === 1.2.0 (2012-9-25)
2
+ * Touch jobs.rb if not otherwise modified by iyyov_install_jobs. This
3
+ notifies iyyov to restart a daemon when the jobs.rb is otherwise
4
+ unchanged (and using a daemon version range.)
5
+ * Upgrade to JRuby 1.6.8 (default)
6
+ * Upgrade to Iyyov 1.1.4 (default, in init.d/iyyov)
7
+ * Upgrade to java 1.7.0_07
8
+
1
9
  === 1.1.0 (2012-9-13)
2
10
  * Add (boxed-)geminabox provisions and deploy task
3
11
  * Upgrade to (default) jdk-ora-1.7.0_05-x64
data/Rakefile CHANGED
@@ -14,6 +14,7 @@ require 'syncwrap/iyyov'
14
14
  require 'syncwrap/rhel'
15
15
  require 'syncwrap/postgresql'
16
16
  require 'syncwrap/remote_task'
17
+ require 'syncwrap/geminabox'
17
18
 
18
19
  class SyncWrapper
19
20
  include SyncWrap::Java
@@ -22,6 +23,7 @@ class SyncWrapper
22
23
  include SyncWrap::Iyyov
23
24
  include SyncWrap::RHEL
24
25
  include SyncWrap::PostgreSQL
26
+ include SyncWrap::Geminabox
25
27
 
26
28
  include SyncWrap::RemoteTask
27
29
 
data/etc/init.d/iyyov CHANGED
@@ -14,7 +14,7 @@
14
14
  gem_home="/usr/local/lib/jruby/gems"
15
15
 
16
16
  # (Exact) Gem version of iyyov to run
17
- version="1.1.3"
17
+ version="1.1.4"
18
18
 
19
19
  # User to run the daemon as (should own rundir)
20
20
  user="runr"
data/lib/syncwrap/base.rb CHANGED
@@ -15,5 +15,5 @@
15
15
  #++
16
16
 
17
17
  module SyncWrap
18
- VERSION='1.1.0'
18
+ VERSION='1.2.0'
19
19
  end
@@ -30,7 +30,7 @@ module SyncWrap::Iyyov
30
30
  def initialize
31
31
  super
32
32
 
33
- @iyyov_version = '1.1.3'
33
+ @iyyov_version = '1.1.4'
34
34
  end
35
35
 
36
36
  # Install then (re-)start Iyyov if needed, yield to block if given
@@ -49,17 +49,29 @@ module SyncWrap::Iyyov
49
49
  sleep 15
50
50
  end
51
51
 
52
+ # Any Iyyov restart completes *before* job changes
53
+
52
54
  # FIXME: Need a better solution to wait on Iyyov than an arbitrary
53
55
  # sleep.
54
56
 
55
- # Any Iyyov restart completes *before* job changes
57
+ tfile = '/tmp/iyyov_jobs_deploy'
58
+ sudo <<-SH
59
+ rm -f #{tfile}
60
+ touch #{tfile}
61
+ SH
56
62
 
57
63
  yield if block_given?
58
64
 
59
65
  user_run_rput( 'var/iyyov/jobs.rb', iyyov_run_dir )
60
66
 
61
- # FIXME: If no jobs.rb change, still touch file to ensure
62
- # check, but avoid both an update and a touch...
67
+ # Touch jobs.rb if not changed by above, so iyyov can check if
68
+ # daemons need restart.
69
+ sudo( <<-SH, :user => user_run )
70
+ if [ #{iyyov_run_dir}/jobs.rb -ot #{tfile} ]; then
71
+ touch #{iyyov_run_dir}/jobs.rb
72
+ echo "touch #{iyyov_run_dir}/jobs.rb"
73
+ fi
74
+ SH
63
75
 
64
76
  end
65
77
 
data/lib/syncwrap/java.rb CHANGED
@@ -35,7 +35,7 @@ module SyncWrap::Java
35
35
  super
36
36
 
37
37
  @java_repo_base_url = 'http://localhost/repo'
38
- @java_jdk_name = 'jdk-ora-1.7.0_05-x64'
38
+ @java_jdk_name = 'jdk-ora-1.7.0_07-x64'
39
39
  end
40
40
 
41
41
  def java_jdk_url
@@ -21,7 +21,7 @@ require 'syncwrap/common'
21
21
  module SyncWrap::JRuby
22
22
  include SyncWrap::Common
23
23
 
24
- # JRuby version to install (default: 1.6.7)
24
+ # JRuby version to install (default: 1.6.8)
25
25
  attr_accessor :jruby_version
26
26
 
27
27
  # The name of the gem command to be installed/used (default: jgem)
@@ -33,7 +33,7 @@ module SyncWrap::JRuby
33
33
  def initialize
34
34
  super
35
35
 
36
- @jruby_version = '1.6.7'
36
+ @jruby_version = '1.6.8'
37
37
  @jruby_gem_command = 'jgem'
38
38
  @jruby_gem_install_args = %w[ --no-rdoc --no-ri ]
39
39
  end
@@ -57,7 +57,7 @@ class TestSyncWrap < MiniTest::Unit::TestCase
57
57
  'Common#initialize should run for defaults' )
58
58
  assert_equal( 'runr', w.user_run,
59
59
  'UserRun#initialize should run for defaults' )
60
- assert_equal( '1.1.3', w.iyyov_version,
60
+ assert_equal( '1.1.4', w.iyyov_version,
61
61
  'Iyyov#initialize should run for defaults' )
62
62
  end
63
63
 
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: syncwrap
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.0
5
+ version: 1.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Kellum
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-13 00:00:00.000000000 Z
12
+ date: 2012-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest