capistrano-tomcat 0.0.2 → 0.0.3

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/HISTORY.txt CHANGED
@@ -1,3 +1,8 @@
1
+ v0.0.3
2
+ ======
3
+ * Allows a deployment to add additional environment variables to the
4
+ Tomcat runtime
5
+
1
6
  v0.0.2
2
7
  ======
3
8
  * Deploys to a machine with RedHat Enterprise Linux and the `tomcat6` package.
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Tomcat
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -10,6 +10,7 @@ configuration.load do
10
10
  _cset(:tomcat_https_port) { tomcat_base_port + 443 } #8443
11
11
  _cset :keystore_password, nil
12
12
  _cset :catalina_home, '/usr/share/tomcat6'
13
+ _cset(:tomcat_runtime_env, {})
13
14
 
14
15
  namespace :deploy do
15
16
  task :update_code, :roles => :app do
@@ -39,11 +40,12 @@ configuration.load do
39
40
  def run_tomcat_command cmd
40
41
  log = File.join(shared_path, "log", "deploy.log")
41
42
  tmpdir = File.join(current_path, "temp")
42
- run "/usr/sbin/tomcat6 #{cmd} #{log}", :env => {
43
+ base_env = {
43
44
  "CATALINA_HOME" => catalina_home,
44
45
  "CATALINA_BASE" => current_path,
45
46
  "CATALINA_TMPDIR" => tmpdir
46
47
  }
48
+ run "/usr/sbin/tomcat6 #{cmd} #{log}", :env => base_env.merge(tomcat_runtime_env)
47
49
  end
48
50
  end
49
51
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-tomcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-26 00:00:00.000000000 Z
12
+ date: 2011-10-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &70220131883800 !ruby/object:Gem::Requirement
16
+ requirement: &70196232739240 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70220131883800
24
+ version_requirements: *70196232739240
25
25
  description: ! "Apache Tomcat, a Java servlet container, runs WARs\n\n These deployment
26
26
  recipes help to run a Tomcat instance with your\n own WAR files from Capistrano.\n
27
27
  \ "