tomcap 1.0.3 → 1.1.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/README.txt CHANGED
@@ -14,8 +14,9 @@ Capistrano tasks which allow you to quickly and easily deploy Java WAR files loc
14
14
 
15
15
  == INSTALLATION:
16
16
 
17
- $ gem sources -a http://gems.github.com/ (if you havn't already, which is unlikely)
18
- $ gem install ienders-tomcap
17
+ No longer hosted in git gems. From 1.0.3+ can be found in RubyGems.
18
+
19
+ $ gem install tomcap
19
20
 
20
21
  == USAGE:
21
22
 
@@ -25,6 +26,10 @@ In your deploy.rb, simply include this line at the top:
25
26
 
26
27
  require 'tomcap/recipes'
27
28
 
29
+ NEW: If you're using Tomcat 7, instead, require recipes7 (everything else is the same aside from standard Tomcat permission changes).
30
+
31
+ require 'tomcap/recipes7'
32
+
28
33
  = Set your configuration parameters
29
34
 
30
35
  set :tomcat_user, "..."
data/Rakefile CHANGED
File without changes
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.1.0
@@ -5,7 +5,6 @@ Capistrano::Configuration.instance(:must_exist).load do
5
5
  run "mkdir -p #{shared_path}/cached_java_copy"
6
6
  end
7
7
 
8
-
9
8
  desc <<-DESC
10
9
  Deploy Java WAR to a running Tomcat container.
11
10
 
@@ -50,7 +49,7 @@ Capistrano::Configuration.instance(:must_exist).load do
50
49
  wget #{war_path}/#{war_file} --user=#{mvn_repo_user} --password=#{mvn_repo_pass}
51
50
  CMD
52
51
 
53
- manager_url = "#{tomcat_url}/manager"
52
+ manager_url = "#{tomcat_url}/#{fetch(:tomcat_manager_url, 'manager')}"
54
53
  context_path = "/#{mvn_war_artifact_id}-#{mvn_war_version}"
55
54
 
56
55
  run "curl -v -u #{tomcat_user}:#{tomcat_pass} #{manager_url}/undeploy?path=#{context_path}"
@@ -0,0 +1,13 @@
1
+ require 'tomcap/recipes'
2
+
3
+ Capistrano::Configuration.instance(:must_exist).load do
4
+
5
+ namespace :deploy do
6
+ task :set_tomcat7_manager_url, :roles => :java do
7
+ set :tomcat_manager_url, 'manager/text'
8
+ end
9
+ end
10
+
11
+ before "deploy:setup_java", "deploy:set_tomcat7_manager_url"
12
+
13
+ end
@@ -1,30 +1,29 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tomcap}
8
- s.version = "1.0.3"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ian Enders"]
12
- s.date = %q{2010-08-12}
12
+ s.date = %q{2010-11-29}
13
13
  s.description = %q{Capistrano tasks which allow you to quickly and easily deploy Java WAR files located in remote repositories (currently Artifactory repos) to a running Tomcat container.}
14
14
  s.email = %q{ian.enders@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "README.txt"
17
17
  ]
18
18
  s.files = [
19
- ".gitignore",
20
- "README.txt",
21
- "Rakefile",
22
- "VERSION",
23
- "lib/tomcap/recipes.rb",
24
- "tomcap.gemspec"
19
+ "README.txt",
20
+ "Rakefile",
21
+ "VERSION",
22
+ "lib/tomcap/recipes.rb",
23
+ "lib/tomcap/recipes7.rb",
24
+ "tomcap.gemspec"
25
25
  ]
26
26
  s.homepage = %q{http://github.com/ienders/tomcap}
27
- s.rdoc_options = ["--charset=UTF-8"]
28
27
  s.require_paths = ["lib"]
29
28
  s.rubygems_version = %q{1.3.7}
30
29
  s.summary = %q{Tomcat deployment with Capistrano}
@@ -39,3 +38,4 @@ Gem::Specification.new do |s|
39
38
  else
40
39
  end
41
40
  end
41
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomcap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 3
10
- version: 1.0.3
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ian Enders
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-12 00:00:00 -04:00
18
+ date: 2010-11-29 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -28,19 +28,19 @@ extensions: []
28
28
  extra_rdoc_files:
29
29
  - README.txt
30
30
  files:
31
- - .gitignore
32
31
  - README.txt
33
32
  - Rakefile
34
33
  - VERSION
35
34
  - lib/tomcap/recipes.rb
35
+ - lib/tomcap/recipes7.rb
36
36
  - tomcap.gemspec
37
37
  has_rdoc: true
38
38
  homepage: http://github.com/ienders/tomcap
39
39
  licenses: []
40
40
 
41
41
  post_install_message:
42
- rdoc_options:
43
- - --charset=UTF-8
42
+ rdoc_options: []
43
+
44
44
  require_paths:
45
45
  - lib
46
46
  required_ruby_version: !ruby/object:Gem::Requirement
data/.gitignore DELETED
@@ -1,3 +0,0 @@
1
- pkg/*
2
- tomcap-*.gem
3
- github-test.rb