ucb_deployer 0.3.1 → 0.3.2
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/Rakefile +1 -1
- data/lib/ucb_deployer/jira_deployer.rb +2 -3
- data/spec/fixtures/jira/web.xml +1 -0
- data/spec/ucb_deployer/jira_deployer_spec.rb +9 -9
- data/ucb_deployer.gemspec +1 -1
- metadata +3 -3
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require 'echoe'
|
|
4
4
|
require 'spec/rake/spectask'
|
5
5
|
|
6
6
|
|
7
|
-
Echoe.new('ucb_deployer', '0.3.
|
7
|
+
Echoe.new('ucb_deployer', '0.3.2') do |p|
|
8
8
|
p.description = "Tool for deploying Confluence/JIRA war files to tomcat"
|
9
9
|
p.url = "http://ucbrb.rubyforge.org"
|
10
10
|
p.author = "Steven Hansen"
|
@@ -3,8 +3,7 @@ module UcbDeployer
|
|
3
3
|
class JiraDeployer < Deployer
|
4
4
|
|
5
5
|
def initialize(config_file = "#{ENV['HOME']}/config/jira/deploy.yml")
|
6
|
-
|
7
|
-
info("")
|
6
|
+
debug("Using config file: #{config_file}")
|
8
7
|
|
9
8
|
load_config(config_file)
|
10
9
|
end
|
@@ -70,7 +69,7 @@ module UcbDeployer
|
|
70
69
|
end
|
71
70
|
|
72
71
|
def web_xml_token()
|
73
|
-
"
|
72
|
+
"<!--This filter is used to determine is there are any Application Errors before any pages are accessed"
|
74
73
|
end
|
75
74
|
|
76
75
|
##
|
data/spec/fixtures/jira/web.xml
CHANGED
@@ -36,11 +36,11 @@ describe UcbDeployer::JiraDeployer do
|
|
36
36
|
@cdep.config_web_xml
|
37
37
|
File.exists?(@cdep.web_xml).should be_true
|
38
38
|
lines = File.readlines(@cdep.web_xml)
|
39
|
-
lines.
|
40
|
-
lines.
|
41
|
-
lines.
|
42
|
-
lines.
|
43
|
-
lines.
|
39
|
+
lines.grep(/<\?xml version="1\.0"\?>/).should be_true
|
40
|
+
lines.grep(/^<web-app /).should be_true
|
41
|
+
lines.grep(/#{@cdep.cas_server_url}/).should have(1).record
|
42
|
+
lines.grep(/#{@cdep.cas_service_url}/).should have(1).record
|
43
|
+
lines.grep(/<\/web-app>/).should be_true
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
@@ -54,10 +54,10 @@ describe UcbDeployer::JiraDeployer do
|
|
54
54
|
@cdep.config_seraph_config_xml
|
55
55
|
File.exists?(@cdep.seraph_config_xml).should be_true
|
56
56
|
lines = File.readlines(@cdep.seraph_config_xml)
|
57
|
-
lines.
|
58
|
-
lines.
|
59
|
-
lines.
|
60
|
-
lines.
|
57
|
+
lines.grep(/<security-config>/).should be_true
|
58
|
+
lines.grep(/#{Regexp.quote(@cdep.cas_authenticator_class)}/).should have(1).record
|
59
|
+
lines.grep(/#{Regexp.quote(@cdep.cas_server_url)}\/logout/).should have(1).record
|
60
|
+
lines.grep(/<\/security-config>/).should be_true
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
data/ucb_deployer.gemspec
CHANGED
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: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steven Hansen
|