ucb_deployer 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.svnignore +5 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +33 -0
- data/Rakefile +15 -15
- data/bin/ucb_deploy +0 -0
- data/lib/ucb_deployer/confluence_deployer.rb +8 -10
- data/lib/ucb_deployer/deployer.rb +3 -9
- data/lib/ucb_deployer/jira_deployer.rb +9 -11
- data/lib/ucb_deployer/version.rb +3 -0
- data/ucb_deployer.gemspec +24 -24
- metadata +117 -30
- data/Manifest +0 -29
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
ucb_deployer (0.4.0)
|
5
|
+
rake (= 0.8.7)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
columnize (0.3.4)
|
11
|
+
diff-lcs (1.1.3)
|
12
|
+
linecache (0.46)
|
13
|
+
rbx-require-relative (> 0.0.4)
|
14
|
+
rake (0.8.7)
|
15
|
+
rbx-require-relative (0.0.5)
|
16
|
+
rcov (0.9.10)
|
17
|
+
rspec (1.3.0)
|
18
|
+
ruby-debug (0.10.4)
|
19
|
+
columnize (>= 0.1)
|
20
|
+
ruby-debug-base (~> 0.10.4.0)
|
21
|
+
ruby-debug-base (0.10.4)
|
22
|
+
linecache (>= 0.3)
|
23
|
+
|
24
|
+
PLATFORMS
|
25
|
+
ruby
|
26
|
+
|
27
|
+
DEPENDENCIES
|
28
|
+
bundler (= 1.0.21)
|
29
|
+
diff-lcs (>= 1.1.2)
|
30
|
+
rcov (>= 0.9.9)
|
31
|
+
rspec (= 1.3.0)
|
32
|
+
ruby-debug (>= 0.10.4)
|
33
|
+
ucb_deployer!
|
data/Rakefile
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
require '
|
2
|
-
require 'rake'
|
3
|
-
require 'echoe'
|
1
|
+
require 'bundler'
|
4
2
|
require 'spec/rake/spectask'
|
3
|
+
require 'spec/rake/verify_rcov'
|
5
4
|
|
5
|
+
Bundler::GemHelper.install_tasks()
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
p.email = "runner@berkeley.edu"
|
12
|
-
p.project = "ucbrb"
|
13
|
-
p.rdoc_pattern = "README.md", "lib/**/**", "TODO.md"
|
7
|
+
Spec::Rake::SpecTask.new("spec:rcov") do |t|
|
8
|
+
t.spec_opts ||= []
|
9
|
+
t.spec_opts << "--options" << "spec/spec.opts"
|
10
|
+
t.rcov = true
|
14
11
|
end
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
t.
|
19
|
-
|
12
|
+
|
13
|
+
Spec::Rake::SpecTask.new("spec") do |t|
|
14
|
+
t.spec_opts ||= []
|
15
|
+
t.spec_opts << "--options" << "spec/spec.opts"
|
16
|
+
end
|
17
|
+
|
18
|
+
RCov::VerifyTask.new(:rcov => "spec:rcov") do |t|
|
19
|
+
t.threshold = 100
|
20
20
|
end
|
21
21
|
|
data/bin/ucb_deploy
CHANGED
File without changes
|
@@ -10,12 +10,11 @@ module UcbDeployer
|
|
10
10
|
|
11
11
|
def export()
|
12
12
|
UcbDeployer.debug("Exporting from: #{svn_project_url}/confluence-#{version}")
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
Dir.chdir(pwd)
|
13
|
+
Dir.chdir("#{build_dir}") do
|
14
|
+
FileUtils.rm_rf("#{build_dir}/src")
|
15
|
+
`svn export #{svn_project_url}/confluence-#{version}`
|
16
|
+
FileUtils.mv("confluence-#{version}", "src")
|
17
|
+
end
|
19
18
|
$stdout.puts("Export Completed")
|
20
19
|
end
|
21
20
|
|
@@ -28,10 +27,9 @@ module UcbDeployer
|
|
28
27
|
end
|
29
28
|
|
30
29
|
def build()
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
Dir.chdir(pwd)
|
30
|
+
Dir.chdir("#{build_dir}/src") do
|
31
|
+
`sh #{build_dir}/src/build.sh`
|
32
|
+
end
|
35
33
|
end
|
36
34
|
|
37
35
|
def deploy()
|
@@ -16,7 +16,6 @@ module UcbDeployer
|
|
16
16
|
:cas_server_url,
|
17
17
|
:data_dir,
|
18
18
|
:maintenance_file_dir,
|
19
|
-
:svn_username,
|
20
19
|
:svn_project_url,
|
21
20
|
]
|
22
21
|
|
@@ -40,10 +39,6 @@ module UcbDeployer
|
|
40
39
|
def deploy()
|
41
40
|
end
|
42
41
|
|
43
|
-
def svn_username()
|
44
|
-
@svn_username || "app_relmgt"
|
45
|
-
end
|
46
|
-
|
47
42
|
##
|
48
43
|
# Configuration options are:
|
49
44
|
#
|
@@ -51,7 +46,6 @@ module UcbDeployer
|
|
51
46
|
# +deploy_dir+
|
52
47
|
# +war_name+
|
53
48
|
# +svn_project_url+
|
54
|
-
# +svn_username+
|
55
49
|
# +cas_service_url+
|
56
50
|
# +cas_server_url+
|
57
51
|
# +maintenance_file_dir+
|
@@ -82,7 +76,7 @@ module UcbDeployer
|
|
82
76
|
UcbDeployer.info(str)
|
83
77
|
end
|
84
78
|
|
85
|
-
def
|
79
|
+
def disable_web()
|
86
80
|
return unless maintenance_file_dir()
|
87
81
|
maint_start = Time.now.strftime("%m-%d-%Y %H:%M:%S")
|
88
82
|
template = ERB.new(maintenance_template)
|
@@ -91,7 +85,7 @@ module UcbDeployer
|
|
91
85
|
end
|
92
86
|
end
|
93
87
|
|
94
|
-
def
|
88
|
+
def enable_web()
|
95
89
|
return unless maintenance_file_dir()
|
96
90
|
FileUtils.rm("#{maintenance_file_dir}/maintenance.html")
|
97
91
|
end
|
@@ -105,7 +99,7 @@ module UcbDeployer
|
|
105
99
|
|
106
100
|
<head>
|
107
101
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
108
|
-
<title>Site Maintenance
|
102
|
+
<title>Site Maintenance</title>
|
109
103
|
<style type="text/css">
|
110
104
|
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
111
105
|
div.dialog {
|
@@ -11,12 +11,11 @@ module UcbDeployer
|
|
11
11
|
def export()
|
12
12
|
info("Exporting from: #{svn_project_url}/jira-#{version}")
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
Dir.chdir(pwd)
|
14
|
+
Dir.chdir("#{build_dir}") do
|
15
|
+
FileUtils.rm_rf("#{build_dir}/src")
|
16
|
+
`svn export #{svn_project_url}/jira-#{version}`
|
17
|
+
FileUtils.mv("jira-#{version}", "src")
|
18
|
+
end
|
20
19
|
end
|
21
20
|
|
22
21
|
def configure()
|
@@ -32,10 +31,9 @@ module UcbDeployer
|
|
32
31
|
def build()
|
33
32
|
info("Building application.")
|
34
33
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
Dir.chdir(pwd)
|
34
|
+
Dir.chdir("#{build_dir}/src") do
|
35
|
+
`sh #{build_dir}/src/build.sh`
|
36
|
+
end
|
39
37
|
end
|
40
38
|
|
41
39
|
def deploy()
|
@@ -238,7 +236,7 @@ module UcbDeployer
|
|
238
236
|
FileUtils.cp(Dir["#{UcbDeployer::RESOURCES_DIR}/soulwing-casclient-*"],
|
239
237
|
"#{build_dir}/src/edit-webapp/WEB-INF/lib/")
|
240
238
|
# These have been placed in $CATALINA_HOME/lib
|
241
|
-
["activation", "javamail", "commons-logging", "log4j"].each do |jar|
|
239
|
+
["mail", "activation", "javamail", "commons-logging", "log4j"].each do |jar|
|
242
240
|
FileUtils.rm_rf(Dir["#{build_dir}/src/webapp/WEB-INF/lib/#{jar}-*"])
|
243
241
|
end
|
244
242
|
end
|
data/ucb_deployer.gemspec
CHANGED
@@ -1,30 +1,30 @@
|
|
1
|
-
|
1
|
+
require File.expand_path("../lib/ucb_deployer/version", __FILE__)
|
2
2
|
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = %q{ucb_deployer}
|
5
|
-
s.version = "0.3.3"
|
6
3
|
|
7
|
-
|
8
|
-
s.
|
9
|
-
s.
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.
|
16
|
-
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "ucb_deployer"
|
6
|
+
s.version = UcbDeployer::VERSION
|
7
|
+
s.platform = Gem::Platform::RUBY
|
8
|
+
s.authors = ["Steven Hansen"]
|
9
|
+
s.email = ["runner@berkeley.edu"]
|
10
|
+
s.homepage = ""
|
11
|
+
s.summary = %q{Tool for deploying Confluence and JIRA war files to tomcat}
|
12
|
+
s.description = %q{Tool for deploying Confluence and JIRA war files to tomcat}
|
13
|
+
|
14
|
+
s.has_rdoc = true
|
15
|
+
s.extra_rdoc_files = ["README.md"]
|
16
|
+
s.rdoc_options = ["--main", "README.md"]
|
17
|
+
s.rubyforge_project = "ucb_deployer"
|
18
|
+
|
19
|
+
s.files = `svn ls -R`.split("\n")
|
20
|
+
s.test_files = Dir["spec/**/**"]
|
21
|
+
s.executables = ["ucb_deploy"]
|
17
22
|
s.require_paths = ["lib"]
|
18
|
-
s.rubyforge_project = %q{ucbrb}
|
19
|
-
s.rubygems_version = %q{1.7.2}
|
20
|
-
s.summary = %q{Tool for deploying Confluence/JIRA war files to tomcat}
|
21
23
|
|
22
|
-
|
23
|
-
s.specification_version = 3
|
24
|
+
s.add_runtime_dependency(%q<rake>, ["= 0.8.7"])
|
24
25
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
end
|
26
|
+
s.add_development_dependency(%q<rspec>, ["= 1.3.0"])
|
27
|
+
s.add_development_dependency(%q<rcov>, [">= 0.9.9"])
|
28
|
+
s.add_development_dependency(%q<diff-lcs>, [">= 1.1.2"])
|
29
|
+
s.add_development_dependency(%q<ruby-debug>, [">= 0.10.4"])
|
30
30
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ucb_deployer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 4
|
9
|
+
- 0
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steven Hansen
|
@@ -15,32 +15,110 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
dependencies:
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
date: 2011-10-03 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: rake
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - "="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 49
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
- 8
|
32
|
+
- 7
|
33
|
+
version: 0.8.7
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - "="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 27
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 3
|
48
|
+
- 0
|
49
|
+
version: 1.3.0
|
50
|
+
type: :development
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: rcov
|
54
|
+
prerelease: false
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 41
|
61
|
+
segments:
|
62
|
+
- 0
|
63
|
+
- 9
|
64
|
+
- 9
|
65
|
+
version: 0.9.9
|
66
|
+
type: :development
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: diff-lcs
|
70
|
+
prerelease: false
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 23
|
77
|
+
segments:
|
78
|
+
- 1
|
79
|
+
- 1
|
80
|
+
- 2
|
81
|
+
version: 1.1.2
|
82
|
+
type: :development
|
83
|
+
version_requirements: *id004
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: ruby-debug
|
86
|
+
prerelease: false
|
87
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
hash: 63
|
93
|
+
segments:
|
94
|
+
- 0
|
95
|
+
- 10
|
96
|
+
- 4
|
97
|
+
version: 0.10.4
|
98
|
+
type: :development
|
99
|
+
version_requirements: *id005
|
100
|
+
description: Tool for deploying Confluence and JIRA war files to tomcat
|
101
|
+
email:
|
102
|
+
- runner@berkeley.edu
|
23
103
|
executables:
|
24
104
|
- ucb_deploy
|
25
105
|
extensions: []
|
26
106
|
|
27
107
|
extra_rdoc_files:
|
28
108
|
- README.md
|
29
|
-
- TODO.md
|
30
|
-
- lib/ucb_deployer.rb
|
31
|
-
- lib/ucb_deployer/confluence_deployer.rb
|
32
|
-
- lib/ucb_deployer/deployer.rb
|
33
|
-
- lib/ucb_deployer/jira_deployer.rb
|
34
109
|
files:
|
35
|
-
-
|
110
|
+
- .svnignore
|
111
|
+
- Gemfile
|
112
|
+
- Gemfile.lock
|
36
113
|
- README.md
|
37
114
|
- Rakefile
|
38
115
|
- TODO.md
|
39
116
|
- bin/ucb_deploy
|
40
|
-
- lib/ucb_deployer.rb
|
41
117
|
- lib/ucb_deployer/confluence_deployer.rb
|
42
118
|
- lib/ucb_deployer/deployer.rb
|
43
119
|
- lib/ucb_deployer/jira_deployer.rb
|
120
|
+
- lib/ucb_deployer/version.rb
|
121
|
+
- lib/ucb_deployer.rb
|
44
122
|
- resources/confluence_cas_web.xml
|
45
123
|
- resources/ist_banner.jpg
|
46
124
|
- resources/jira_cas_web.xml
|
@@ -62,15 +140,11 @@ files:
|
|
62
140
|
- spec/ucb_deployer/jira_deployer_spec.rb
|
63
141
|
- spec/ucb_deployer/ucb_deployer_spec.rb
|
64
142
|
- ucb_deployer.gemspec
|
65
|
-
homepage:
|
143
|
+
homepage: ""
|
66
144
|
licenses: []
|
67
145
|
|
68
146
|
post_install_message:
|
69
147
|
rdoc_options:
|
70
|
-
- --line-numbers
|
71
|
-
- --inline-source
|
72
|
-
- --title
|
73
|
-
- Ucb_deployer
|
74
148
|
- --main
|
75
149
|
- README.md
|
76
150
|
require_paths:
|
@@ -89,17 +163,30 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
163
|
requirements:
|
90
164
|
- - ">="
|
91
165
|
- !ruby/object:Gem::Version
|
92
|
-
hash:
|
166
|
+
hash: 3
|
93
167
|
segments:
|
94
|
-
-
|
95
|
-
|
96
|
-
version: "1.2"
|
168
|
+
- 0
|
169
|
+
version: "0"
|
97
170
|
requirements: []
|
98
171
|
|
99
|
-
rubyforge_project:
|
100
|
-
rubygems_version: 1.
|
172
|
+
rubyforge_project: ucb_deployer
|
173
|
+
rubygems_version: 1.8.10
|
101
174
|
signing_key:
|
102
175
|
specification_version: 3
|
103
|
-
summary: Tool for deploying Confluence
|
104
|
-
test_files:
|
105
|
-
|
176
|
+
summary: Tool for deploying Confluence and JIRA war files to tomcat
|
177
|
+
test_files:
|
178
|
+
- spec/fixtures/confluence/bad_deploy.yml
|
179
|
+
- spec/fixtures/confluence/confluence-init.properties
|
180
|
+
- spec/fixtures/confluence/deploy.yml
|
181
|
+
- spec/fixtures/confluence/seraph-config.xml
|
182
|
+
- spec/fixtures/confluence/web.xml
|
183
|
+
- spec/fixtures/jira/bad_deploy.yml
|
184
|
+
- spec/fixtures/jira/deploy.yml
|
185
|
+
- spec/fixtures/jira/entityengine.xml
|
186
|
+
- spec/fixtures/jira/jira-application.properties
|
187
|
+
- spec/fixtures/jira/seraph-config.xml
|
188
|
+
- spec/fixtures/jira/web.xml
|
189
|
+
- spec/spec_helper.rb
|
190
|
+
- spec/ucb_deployer/confluence_deployer_spec.rb
|
191
|
+
- spec/ucb_deployer/jira_deployer_spec.rb
|
192
|
+
- spec/ucb_deployer/ucb_deployer_spec.rb
|
data/Manifest
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
Manifest
|
2
|
-
README.md
|
3
|
-
Rakefile
|
4
|
-
TODO.md
|
5
|
-
bin/ucb_deploy
|
6
|
-
lib/ucb_deployer.rb
|
7
|
-
lib/ucb_deployer/confluence_deployer.rb
|
8
|
-
lib/ucb_deployer/deployer.rb
|
9
|
-
lib/ucb_deployer/jira_deployer.rb
|
10
|
-
resources/confluence_cas_web.xml
|
11
|
-
resources/ist_banner.jpg
|
12
|
-
resources/jira_cas_web.xml
|
13
|
-
resources/soulwing-casclient-0.5.3-1.jar
|
14
|
-
resources/xwork.xml
|
15
|
-
spec/fixtures/confluence/bad_deploy.yml
|
16
|
-
spec/fixtures/confluence/confluence-init.properties
|
17
|
-
spec/fixtures/confluence/deploy.yml
|
18
|
-
spec/fixtures/confluence/seraph-config.xml
|
19
|
-
spec/fixtures/confluence/web.xml
|
20
|
-
spec/fixtures/jira/bad_deploy.yml
|
21
|
-
spec/fixtures/jira/deploy.yml
|
22
|
-
spec/fixtures/jira/entityengine.xml
|
23
|
-
spec/fixtures/jira/jira-application.properties
|
24
|
-
spec/fixtures/jira/seraph-config.xml
|
25
|
-
spec/fixtures/jira/web.xml
|
26
|
-
spec/spec_helper.rb
|
27
|
-
spec/ucb_deployer/confluence_deployer_spec.rb
|
28
|
-
spec/ucb_deployer/jira_deployer_spec.rb
|
29
|
-
spec/ucb_deployer/ucb_deployer_spec.rb
|