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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +2 -2
- data/lib/capistrano/fiftyfive/version.rb +1 -1
- data/lib/capistrano/tasks/defaults.rake +3 -3
- data/lib/sshkit/formatter/abbreviated.rb +16 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 081a86b4f7b84d1554ebf148b6a2455c5ca52ae2
|
4
|
+
data.tar.gz: 0ae4131fd3773780129e93801b2de49ac6856660
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c26120da6ad226b4d5ec149c1cd64e51cb48015ae59455261b2be07082aae3bd2d265750b839ab7b0571a0c935cc0bcaa91d2070cff78751e5bed79f363ab126
|
7
|
+
data.tar.gz: 74a30b0f6c15c14ef086c1fede23eefea3bf1ad3caa3e8f82c0efbfa5f4d4180689e75483d898deb44a649d09806d58e65da5dc9f1261d68cb9be93dc66fa60f
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
47
|
-
gem 'capistrano-fiftyfive'
|
46
|
+
gem 'capistrano', '~> 3.3.5', :require => false
|
47
|
+
gem 'capistrano-fiftyfive' :require => false
|
48
48
|
end
|
49
49
|
|
50
50
|
And then execute:
|
@@ -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, "
|
79
|
-
set :fiftyfive_ssl_csr_org, "
|
80
|
-
set :fiftyfive_ssl_csr_name, "example.
|
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
|
82
|
+
"** Refer to #{@log_file} for details. Here are the last 20 lines:"
|
69
83
|
))
|
70
84
|
err.print_line
|
71
|
-
system("tail -n
|
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.
|
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:
|
11
|
+
date: 2015-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|