capistrano-deployment-status 0.0.3 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6d8d4af2a33509b7f12b0efdd3b55eb12e6dd74
4
- data.tar.gz: 0292a8b16f6a101222bb2eb64f63ff1c329cc423
3
+ metadata.gz: abbb66bf541e7e813a7ff9ff8ae05f3872bac838
4
+ data.tar.gz: ade0f27e24ac6c0261661f7f23df35b6db88f9f8
5
5
  SHA512:
6
- metadata.gz: 69a05a1676ab53a472f2cfdbf3cdc1f9d3cc210c12e433b1670854dd27f75a28f6f33edf8d34a521831b7c2bb02bfb8cdc4aadd824f145958f86f8a2195dfc9f
7
- data.tar.gz: 026100c1370d1e389006ba1e4e32de49085e36a40a423942673c1b9a9066dace66bf670662a822dd15b21273e03e5fb140c873e85e39405281f8708173af737a
6
+ metadata.gz: 76afc8abcb63a4ea96f82b344cbec21479de19ef8f7b8314aa5aa0cc3b09814134f7f08c1e1f61f7a616f08e0c7d2e4517c3b5cdeeb33d61945a36ca9a69e760
7
+ data.tar.gz: 6957c29c171c21fc3653b34cc22dadfdff5ac23a324c4d94439ac8925ea8a9df560537a176ce1da1f501795057ebb05d6b5926f11c4a9a7ed61030867b63dfb5
data/.gitignore CHANGED
@@ -1,14 +1,15 @@
1
+ *.a
2
+ *.bundle
3
+ *.gem
4
+ *.o
5
+ *.so
1
6
  /.bundle/
2
7
  /.yardoc
3
- /Gemfile.lock
4
8
  /_yardoc/
5
9
  /coverage/
6
10
  /doc/
11
+ /Gemfile.lock
7
12
  /pkg/
8
13
  /spec/reports/
9
14
  /tmp/
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
15
  mkmf.log
data/README.md CHANGED
@@ -33,7 +33,7 @@ Require the gem in your Capfile:
33
33
  require 'capistrano/deployment_status'
34
34
  ```
35
35
 
36
- Currently, that's it. A task will at the end of the deploy that will place a deployment_status.html file in the release's public directory.
36
+ Currently, that's it. A task will run at the end of the deploy that will place a deployment_status.html file in the release's public directory.
37
37
 
38
38
  ## Contributing
39
39
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module DeploymentStatus
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -1,7 +1,5 @@
1
1
  require 'erb'
2
2
 
3
- set :deploy_status_template, "public/deployment_status.html"
4
-
5
3
  namespace :deploy do
6
4
  desc 'Create deployment status page'
7
5
  task :status_page do
@@ -16,7 +14,8 @@ namespace :deploy do
16
14
  deployed_by = fetch(:deployed_by, ENV['USER'])
17
15
 
18
16
  result = StringIO.new(ERB.new(template).result(binding))
19
- output_path = "#{release_path}/#{fetch(:deploy_status_template)}"
17
+ output_path = "#{release_path}/#{fetch(:deploy_status_destination)}"
18
+
20
19
  on roles(:app) do
21
20
  upload! result, output_path
22
21
  execute :chmod, '644', output_path
@@ -25,6 +24,12 @@ namespace :deploy do
25
24
  end
26
25
  after "deploy:published", "deploy:status_page"
27
26
 
27
+ namespace :load do
28
+ task :defaults do
29
+ set :deploy_status_destination, "public/deployment_status.html"
30
+ end
31
+ end
32
+
28
33
  def template
29
34
  input_path = File.join(File.dirname(__FILE__), "../deployment_status/view.html.erb")
30
35
  File.read(input_path)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-deployment-status
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - B.J. Allen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-17 00:00:00.000000000 Z
11
+ date: 2015-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -66,7 +66,6 @@ files:
66
66
  - README.md
67
67
  - Rakefile
68
68
  - capistrano-deployment-status.gemspec
69
- - lib/capistrano-deployment-status.rb
70
69
  - lib/capistrano/deployment_status.rb
71
70
  - lib/capistrano/deployment_status/version.rb
72
71
  - lib/capistrano/deployment_status/view.html.erb
@@ -91,8 +90,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
90
  version: '0'
92
91
  requirements: []
93
92
  rubyforge_project:
94
- rubygems_version: 2.4.1
93
+ rubygems_version: 2.2.2
95
94
  signing_key:
96
95
  specification_version: 4
97
96
  summary: Creates a deployment status page.
98
97
  test_files: []
98
+ has_rdoc:
File without changes