capistrano-fiftyfive 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0be8cbab2bac473d93fe1559a4c276ec65209607
4
- data.tar.gz: c95b6477716bb9b6551c99d5f4db9440a323fa24
3
+ metadata.gz: 081a86b4f7b84d1554ebf148b6a2455c5ca52ae2
4
+ data.tar.gz: 0ae4131fd3773780129e93801b2de49ac6856660
5
5
  SHA512:
6
- metadata.gz: af38dfc37059163c561ac2c5fafbe4aa5049b7f79e9a1dd0ce4c00eb8001d128f30a3cb4a3174ea083da2f2cc64509ba3bd63e4899762c57973e73347b6c9827
7
- data.tar.gz: 89ae486c42f39b1bf23240cabd3fa35be26f79c8f765995d939357b5aeec9438a4722110841309889d2b87cff2d0641c55ebbca6004888b28ba89c538c65b2b0
6
+ metadata.gz: c26120da6ad226b4d5ec149c1cd64e51cb48015ae59455261b2be07082aae3bd2d265750b839ab7b0571a0c935cc0bcaa91d2070cff78751e5bed79f363ab126
7
+ data.tar.gz: 74a30b0f6c15c14ef086c1fede23eefea3bf1ad3caa3e8f82c0efbfa5f4d4180689e75483d898deb44a649d09806d58e65da5dc9f1261d68cb9be93dc66fa60f
@@ -1,5 +1,10 @@
1
1
  # capistrano-fiftyfive Changelog
2
2
 
3
+ ## `0.17.0`
4
+
5
+ * Write a banner message into `capistrano.log` at the start of each cap run, to aid in troubleshooting.
6
+ * Default self-signed SSL certificate is now more generic.
7
+
3
8
  ## `0.16.0`
4
9
 
5
10
  * capistrano-fiftyfive now requires capistrano >= 3.3.5 and sshkit => 1.6.1
data/README.md CHANGED
@@ -43,8 +43,8 @@ Add these gems to the development group of your Rails application's Gemfile:
43
43
  group :development do
44
44
  gem 'capistrano-bundler', :require => false
45
45
  gem 'capistrano-rails', :require => false
46
- gem 'capistrano', '~> 3.2.1', :require => false
47
- gem 'capistrano-fiftyfive', '~> 0.10.0', :require => false
46
+ gem 'capistrano', '~> 3.3.5', :require => false
47
+ gem 'capistrano-fiftyfive' :require => false
48
48
  end
49
49
 
50
50
  And then execute:
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Fiftyfive
3
- VERSION = "0.16.0"
3
+ VERSION = "0.17.0"
4
4
  end
5
5
  end
@@ -75,9 +75,9 @@ namespace :load do
75
75
 
76
76
  set :fiftyfive_ssl_csr_country, "US"
77
77
  set :fiftyfive_ssl_csr_state, "California"
78
- set :fiftyfive_ssl_csr_city, "Albany"
79
- set :fiftyfive_ssl_csr_org, "55 Minutes, Inc."
80
- set :fiftyfive_ssl_csr_name, "example.55minutes.com"
78
+ set :fiftyfive_ssl_csr_city, "San Francisco"
79
+ set :fiftyfive_ssl_csr_org, "Example Company"
80
+ set :fiftyfive_ssl_csr_name, "example.com"
81
81
 
82
82
  # WARNING: misconfiguring firewall rules could lock you out of the server!
83
83
  set :fiftyfive_ufw_rules,
@@ -38,6 +38,7 @@ module SSHKit
38
38
  )
39
39
 
40
40
  @console = Capistrano::Fiftyfive::Console.new(original_output)
41
+ write_log_file_delimiter
41
42
  write_banner
42
43
  end
43
44
 
@@ -50,6 +51,19 @@ module SSHKit
50
51
  print_line "Full cap output is being written to #{blue(@log_file)}."
51
52
  end
52
53
 
54
+ def write_log_file_delimiter
55
+ delimiter = []
56
+ delimiter << "-" * 75
57
+ delimiter << "START #{Time.now} cap #{ARGV.join(' ')}"
58
+ delimiter << "-" * 75
59
+ delimiter.each do |line|
60
+ @log_file_formatter << SSHKit::LogMessage.new(
61
+ SSHKit::Logger::INFO,
62
+ line
63
+ )
64
+ end
65
+ end
66
+
53
67
  def write(obj)
54
68
  @log_file_formatter << obj
55
69
 
@@ -65,10 +79,10 @@ module SSHKit
65
79
  err.print_line
66
80
  err.print_line(red("** DEPLOY FAILED"))
67
81
  err.print_line(yellow(
68
- "** Refer to #{@log_file} for details. Here are the last 10 lines:"
82
+ "** Refer to #{@log_file} for details. Here are the last 20 lines:"
69
83
  ))
70
84
  err.print_line
71
- system("tail -n 10 #{@log_file.shellescape} 1>&2")
85
+ system("tail -n 20 #{@log_file.shellescape} 1>&2")
72
86
  end
73
87
 
74
88
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-fiftyfive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-26 00:00:00.000000000 Z
11
+ date: 2015-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano