capistrano-jetty 1.0.0 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80ab21a037d32393260aeb2b755131b8e6d9d591
4
- data.tar.gz: d282802bdcba2f12f55548440878ddab281a6aff
3
+ metadata.gz: 18db6148f4f9a0dca482e3d115ed40dab24a86da
4
+ data.tar.gz: c570808dfb60925d1b1f9184ba06bf54f737cee3
5
5
  SHA512:
6
- metadata.gz: f0677667c31648fd2d92f204108d1723bdd47072d7a524863d61de6b852081d61bead651545860bfb93939dd7a09f5d96f54e30703e4b86ed82283d79cd4fc5d
7
- data.tar.gz: 5149693dd78e0ca13fbeef13d51c2d56f8d21e7414daf51fbb19550d2e172840e6d1c17a5e00f0dce3a4aa12984af5c2f85cd953492b4988d993031b40126962
6
+ metadata.gz: 8bd2d284a294b05f2b952b16409cc423fb3544e11fbd648029daa2eb57ee91491c10a645312f994b4ecf9419eb0379daba6a167f961f9c2ff53f4e0eb2f55888
7
+ data.tar.gz: ccb123a5108f1398c804b8d8fe86b6d8fd2d8ed9d0ae0c7157a3a69334c529b9c9d666a0b90883f784f3ca0dd2f93bf9c8df53494433ba6a3412597c34410e19
@@ -2,6 +2,14 @@
2
2
 
3
3
  This is the Changelog for Capistrano::Jetty.
4
4
 
5
+ ## v1.1.0 (2014-02-13)
6
+
7
+ * Add validation to check for necessary Capistrano variables
8
+
9
+ ## v1.0.0 (2014-02-12)
10
+
11
+ * Initial production release, idential to 0.0.6
12
+
5
13
  ## v0.0.6 (2014-02-12)
6
14
 
7
15
  * Use correct filepaths for better namespacing
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'capistrano-jetty'
7
- spec.version = '1.0.0'
7
+ spec.version = '1.1.0'
8
8
  spec.authors = ['Jeff Byrnes']
9
9
  spec.email = ['jeff@evertrue.com']
10
10
  spec.summary = %q{Capistrano 3 plugin for handling Jetty.}
@@ -1,5 +1,22 @@
1
1
  namespace :deploy do
2
- desc 'Grab the latest artifact from '
2
+ task :validate do
3
+ on release_roles :all do
4
+ deployed_artifact_filename = fetch(:deployed_artifact_filename)
5
+ jetty_webapps_path = fetch(:jetty_webapps_path)
6
+
7
+ %w(deployed_artifact_filename jetty_webapps_path).each do | var_name |
8
+ var = eval(var_name)
9
+
10
+ if var.nil?
11
+ error "capistrano-scm-jenkins: #{var_name} is not set"
12
+
13
+ exit 1
14
+ end
15
+ end
16
+ end
17
+ end
18
+
19
+ desc 'Grab the latest artifact from the release_path'
3
20
  task :update_webapps do
4
21
  on roles(:app) do
5
22
  execute :cp, "#{release_path}/#{fetch(:deployed_artifact_filename)}",
@@ -14,6 +31,7 @@ namespace :deploy do
14
31
  end
15
32
  end
16
33
 
34
+ before 'deploy:check', 'deploy:validate'
17
35
  before 'deploy:published', 'deploy:update_webapps'
18
36
  after 'deploy:published', 'deploy:restart'
19
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-jetty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Byrnes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-12 00:00:00.000000000 Z
11
+ date: 2014-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -62,7 +62,7 @@ extra_rdoc_files: []
62
62
  files:
63
63
  - ".editorconfig"
64
64
  - ".gitignore"
65
- - CHANGELOG.rb
65
+ - CHANGELOG.md
66
66
  - Gemfile
67
67
  - LICENSE.txt
68
68
  - README.md