ucb_deployer 0.0.2 → 0.0.4
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 +3 -3
- data/bin/deployer +12 -8
- data/lib/ucb_deployer.rb +2 -2
- data/ucb_deployer.gemspec +3 -3
- metadata +5 -5
data/Rakefile
CHANGED
|
@@ -3,12 +3,12 @@ require 'rake'
|
|
|
3
3
|
require 'echoe'
|
|
4
4
|
require 'spec/rake/spectask'
|
|
5
5
|
|
|
6
|
-
Echoe.new('ucb_deployer', '0.0.
|
|
7
|
-
p.description = "Tool for deploying
|
|
6
|
+
Echoe.new('ucb_deployer', '0.0.4') do |p|
|
|
7
|
+
p.description = "Tool for deploying (Java/JRuby) war files to tomcat"
|
|
8
8
|
p.url = "http://ucbrb.rubyforge.org"
|
|
9
9
|
p.author = "Steven Hansen"
|
|
10
10
|
p.email = "runner@berkeley.edu"
|
|
11
|
-
p.project
|
|
11
|
+
p.project = "ucbrb"
|
|
12
12
|
p.rdoc_pattern = "README.txt", "lib/**/**"
|
|
13
13
|
end
|
|
14
14
|
|
data/bin/deployer
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
require 'rake'
|
|
3
|
-
require '
|
|
3
|
+
require 'ucb_deployer'
|
|
4
4
|
|
|
5
|
-
Rake.application.init("
|
|
5
|
+
Rake.application.init("ucb_deployer")
|
|
6
|
+
|
|
7
|
+
USAGE = "Usage: deployer APP=<confluence|jira> VERSION=x.x.x"
|
|
6
8
|
|
|
7
9
|
task :deploy => [:build] do
|
|
8
10
|
@deployer.deploy()
|
|
@@ -21,15 +23,17 @@ task :export => [:init] do
|
|
|
21
23
|
end
|
|
22
24
|
|
|
23
25
|
task :init => [:check_usage] do
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
begin
|
|
27
|
+
@deployer = UcbDeployer.factory(ENV["APP"].to_sym)
|
|
28
|
+
rescue
|
|
29
|
+
$stderr.puts(USAGE)
|
|
30
|
+
exit(1)
|
|
31
|
+
end
|
|
26
32
|
end
|
|
27
33
|
|
|
28
34
|
task :check_usage do
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
if !(ENV["APP"] && ENV["VERSION"] && [:confluence, :jira].include?(ENV["APP"].to_sym))
|
|
32
|
-
$stderr.puts(usage)
|
|
35
|
+
if !(ENV["APP"] && ENV["VERSION"])
|
|
36
|
+
$stderr.puts(USAGE)
|
|
33
37
|
exit(1)
|
|
34
38
|
end
|
|
35
39
|
end
|
data/lib/ucb_deployer.rb
CHANGED
|
@@ -21,9 +21,9 @@ module UcbDeployer
|
|
|
21
21
|
# @return [UcbDeployer::Deployer]
|
|
22
22
|
#
|
|
23
23
|
def self.factory(app_name)
|
|
24
|
-
if
|
|
24
|
+
if app_name == :confluence
|
|
25
25
|
UcbDeployer::ConfluenceDeployer.new()
|
|
26
|
-
elsif
|
|
26
|
+
elsif app_name == :jira
|
|
27
27
|
UcbDeployer::JiraDeployer.new()
|
|
28
28
|
else
|
|
29
29
|
raise(ConfigError, "Unrecognized app_name: #{app_name}")
|
data/ucb_deployer.gemspec
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{ucb_deployer}
|
|
5
|
-
s.version = "0.0.
|
|
5
|
+
s.version = "0.0.4"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Steven Hansen"]
|
|
9
9
|
s.date = %q{2010-10-22}
|
|
10
10
|
s.default_executable = %q{deployer}
|
|
11
|
-
s.description = %q{Tool for deploying
|
|
11
|
+
s.description = %q{Tool for deploying (Java/JRuby) war files to tomcat}
|
|
12
12
|
s.email = %q{runner@berkeley.edu}
|
|
13
13
|
s.executables = ["deployer"]
|
|
14
14
|
s.extra_rdoc_files = ["README.txt", "lib/ucb_deployer.rb", "lib/ucb_deployer/confluence_deployer.rb", "lib/ucb_deployer/deployer.rb", "lib/ucb_deployer/jira_deployer.rb"]
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
|
18
18
|
s.require_paths = ["lib"]
|
|
19
19
|
s.rubyforge_project = %q{ucbrb}
|
|
20
20
|
s.rubygems_version = %q{1.3.7}
|
|
21
|
-
s.summary = %q{Tool for deploying
|
|
21
|
+
s.summary = %q{Tool for deploying (Java/JRuby) war files to tomcat}
|
|
22
22
|
|
|
23
23
|
if s.respond_to? :specification_version then
|
|
24
24
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
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
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.0.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Steven Hansen
|
|
@@ -19,7 +19,7 @@ date: 2010-10-22 00:00:00 -07:00
|
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies: []
|
|
21
21
|
|
|
22
|
-
description: Tool for deploying
|
|
22
|
+
description: Tool for deploying (Java/JRuby) war files to tomcat
|
|
23
23
|
email: runner@berkeley.edu
|
|
24
24
|
executables:
|
|
25
25
|
- deployer
|
|
@@ -95,6 +95,6 @@ rubyforge_project: ucbrb
|
|
|
95
95
|
rubygems_version: 1.3.7
|
|
96
96
|
signing_key:
|
|
97
97
|
specification_version: 3
|
|
98
|
-
summary: Tool for deploying
|
|
98
|
+
summary: Tool for deploying (Java/JRuby) war files to tomcat
|
|
99
99
|
test_files: []
|
|
100
100
|
|