capistrano-torquebox 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/README.md +1 -0
- data/Rakefile +19 -0
- data/capistrano-torquebox.gemspec +3 -1
- data/lib/capistrano/tasks/torquebox/deploy.rake +2 -2
- data/lib/capistrano/torquebox/version.rb +5 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edd389657fd07cc71e8d0faa9101c254f571d8a5
|
4
|
+
data.tar.gz: d147b041ec538d300bbb06fc30348e7bad290522
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b87658a5b30252b4d7b199da96c61edddc6e98d2f384d800d1ccfd74b93fcdba9a118b56365e215e5cd9fb1e2553504cee30ed36d81f103957965db1cb97e838
|
7
|
+
data.tar.gz: 14454555faae34a9b5b5b4c1ce9ce496194987843aaeb19dc9b3ccd5c2d9f8d69fa4134160c7a9df7ed7641bd2b1bf1cd4a2458e38856429af3b2605bf1973cb
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Capistrano::Torquebox
|
2
|
+
|
3
|
+
## Changelog
|
4
|
+
|
5
|
+
### Version 0.2.1
|
6
|
+
#### Release date: 2014-02-26
|
7
|
+
|
8
|
+
1. Deployment descriptor upload bug fixed on multi-server deployment.
|
9
|
+
1. Rake task for proper versioning added.
|
10
|
+
|
11
|
+
### Version 0.2.0
|
12
|
+
#### Release date: 2014-02-16
|
13
|
+
|
14
|
+
1. Allow the extension of the knob.yml through the var knob_yml_extensions.
|
15
|
+
|
16
|
+
### Version 0.0.2
|
17
|
+
#### Release date: 2014-01-01
|
18
|
+
|
19
|
+
1. Set the proper env 'RACK_ENV' instead of 'RAILS_ENV'.
|
20
|
+
1. Some code clean up.
|
21
|
+
|
22
|
+
### Version 0.0.1
|
23
|
+
#### Release date: 2013-12-30
|
24
|
+
|
25
|
+
1. Initial Release: Gem 'torquebox-capistrano-support' transformed to capistrano3.
|
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -1 +1,20 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
+
|
3
|
+
rule /^version:bump:.*/ do |t|
|
4
|
+
index = ['major', 'minor','patch'].index(t.name.split(':').last)
|
5
|
+
file = 'lib/capistrano/torquebox/version.rb'
|
6
|
+
version_file = File.read(file)
|
7
|
+
old_version, *version_parts = version_file.match(/(\d+)\.(\d+)\.(\d+)/).to_a
|
8
|
+
version_parts[index] = version_parts[index].to_i + 1
|
9
|
+
version_parts[2] = 0 if index < 2
|
10
|
+
version_parts[1] = 0 if index < 1
|
11
|
+
new_version = version_parts * '.'
|
12
|
+
|
13
|
+
sh "git status | grep 'nothing to commit'" # ensure we are not dirty
|
14
|
+
|
15
|
+
File.open(file,'w') do |f|
|
16
|
+
f.write(version_file.sub(old_version, new_version))
|
17
|
+
end
|
18
|
+
|
19
|
+
sh "rake install && git add #{file} && git commit -m 'Bump version to #{new_version}' && git tag version-#{new_version} && git push && git push --tags"
|
20
|
+
end
|
@@ -2,9 +2,11 @@
|
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
|
5
|
+
require 'capistrano/torquebox/version'
|
6
|
+
|
5
7
|
Gem::Specification.new do |spec|
|
6
8
|
spec.name = "capistrano-torquebox"
|
7
|
-
spec.version =
|
9
|
+
spec.version = Capistrano::Torquebox::Version
|
8
10
|
spec.authors = ["Roman Simecek"]
|
9
11
|
spec.email = ["roman@good2go.ch"]
|
10
12
|
spec.summary = %q{Torquebox support for Capistrano 3.x}
|
@@ -147,9 +147,9 @@ namespace :deploy do
|
|
147
147
|
|
148
148
|
dd_str = YAML.dump_stream(create_deployment_descriptor(release_path))
|
149
149
|
dd_file = "#{fetch(:jboss_home)}/standalone/deployments/#{fetch(:torquebox_app_name, fetch(:application))}-knob.yml"
|
150
|
-
dd_io = StringIO.new(dd_str)
|
151
150
|
|
152
151
|
on roles(:app), in: :sequence, wait: 5 do
|
152
|
+
dd_io = StringIO.new(dd_str)
|
153
153
|
upload!(dd_io, dd_file)
|
154
154
|
end
|
155
155
|
end
|
@@ -159,9 +159,9 @@ namespace :deploy do
|
|
159
159
|
|
160
160
|
dd_str = YAML.dump_stream(create_deployment_descriptor(previous_release))
|
161
161
|
dd_file = "#{fetch(:jboss_home)}/standalone/deployments/#{fetch(:application)}-knob.yml"
|
162
|
-
dd_io = StringIO.new(dd_str)
|
163
162
|
|
164
163
|
on roles(:app), in: :sequence, wait: 5 do
|
164
|
+
dd_io = StringIO.new(dd_str)
|
165
165
|
upload!(dd_io, dd_file)
|
166
166
|
end
|
167
167
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-torquebox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Simecek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -74,6 +74,7 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
|
+
- CHANGELOG.md
|
77
78
|
- Gemfile
|
78
79
|
- LICENSE
|
79
80
|
- LICENSE.txt
|
@@ -85,6 +86,7 @@ files:
|
|
85
86
|
- lib/capistrano/torquebox.rb
|
86
87
|
- lib/capistrano/torquebox/deploy.rb
|
87
88
|
- lib/capistrano/torquebox/load.rb
|
89
|
+
- lib/capistrano/torquebox/version.rb
|
88
90
|
homepage: ''
|
89
91
|
licenses:
|
90
92
|
- MIT
|
@@ -105,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
107
|
version: '0'
|
106
108
|
requirements: []
|
107
109
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.2.
|
110
|
+
rubygems_version: 2.2.2
|
109
111
|
signing_key:
|
110
112
|
specification_version: 4
|
111
113
|
summary: Torquebox support for Capistrano 3.x
|