syncwrap 1.1.0 → 1.2.0
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/History.rdoc +8 -0
- data/Rakefile +2 -0
- data/etc/init.d/iyyov +1 -1
- data/lib/syncwrap/base.rb +1 -1
- data/lib/syncwrap/iyyov.rb +16 -4
- data/lib/syncwrap/java.rb +1 -1
- data/lib/syncwrap/jruby.rb +2 -2
- data/test/test_syncwrap.rb +1 -1
- metadata +2 -2
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
data/lib/syncwrap/base.rb
CHANGED
data/lib/syncwrap/iyyov.rb
CHANGED
@@ -30,7 +30,7 @@ module SyncWrap::Iyyov
|
|
30
30
|
def initialize
|
31
31
|
super
|
32
32
|
|
33
|
-
@iyyov_version = '1.1.
|
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
|
-
|
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
|
-
#
|
62
|
-
#
|
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
data/lib/syncwrap/jruby.rb
CHANGED
@@ -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.
|
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.
|
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
|
data/test/test_syncwrap.rb
CHANGED
@@ -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.
|
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.
|
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-
|
12
|
+
date: 2012-09-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|