ucb_deployer 0.3.0 → 0.3.1
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/deployer.rb +4 -0
- data/lib/ucb_deployer/jira_deployer.rb +10 -4
- data/lib/ucb_deployer.rb +5 -1
- 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.1') 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,23 +3,25 @@ module UcbDeployer
|
|
3
3
|
class JiraDeployer < Deployer
|
4
4
|
|
5
5
|
def initialize(config_file = "#{ENV['HOME']}/config/jira/deploy.yml")
|
6
|
-
|
7
|
-
|
6
|
+
info("Using config file: #{config_file}")
|
7
|
+
info("")
|
8
|
+
|
8
9
|
load_config(config_file)
|
9
10
|
end
|
10
11
|
|
11
12
|
def export()
|
12
|
-
|
13
|
+
info("Exporting from: #{svn_project_url}/jira-#{version}")
|
14
|
+
|
13
15
|
pwd = Dir.getwd()
|
14
16
|
Dir.chdir("#{build_dir}")
|
15
17
|
FileUtils.rm_rf("#{build_dir}/src")
|
16
18
|
`svn export svn+ssh://#{svn_username}@#{svn_project_url}/jira-#{version}`
|
17
19
|
FileUtils.mv("jira-#{version}", "src")
|
18
20
|
Dir.chdir(pwd)
|
19
|
-
$stdout.puts("Export Completed")
|
20
21
|
end
|
21
22
|
|
22
23
|
def configure()
|
24
|
+
info("Configuring application.")
|
23
25
|
config_web_xml()
|
24
26
|
config_seraph_config_xml()
|
25
27
|
config_entityengine_xml()
|
@@ -29,6 +31,8 @@ module UcbDeployer
|
|
29
31
|
end
|
30
32
|
|
31
33
|
def build()
|
34
|
+
info("Building application.")
|
35
|
+
|
32
36
|
pwd = Dir.getwd()
|
33
37
|
Dir.chdir("#{build_dir}/src")
|
34
38
|
`sh #{build_dir}/src/build.sh`
|
@@ -36,6 +40,8 @@ module UcbDeployer
|
|
36
40
|
end
|
37
41
|
|
38
42
|
def deploy()
|
43
|
+
info("Deploying application.")
|
44
|
+
|
39
45
|
if File.exists?("#{deploy_dir}/#{war_name}")
|
40
46
|
FileUtils.rm_rf(Dir["#{deploy_dir}/#{war_name}"])
|
41
47
|
end
|
data/lib/ucb_deployer.rb
CHANGED
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: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steven Hansen
|