le1t0-capistrano 2.5.18.022 → 2.5.18.023

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.18.022
1
+ 2.5.18.023
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{le1t0-capistrano}
8
- s.version = "2.5.18.022"
8
+ s.version = "2.5.18.023"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Le1t0"]
12
- s.date = %q{2010-12-09}
12
+ s.date = %q{2011-02-28}
13
13
  s.description = %q{Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH.}
14
14
  s.email = ["dev@ewout.to"]
15
15
  s.executables = ["capify", "cap"]
@@ -22,6 +22,7 @@ module Capistrano
22
22
 
23
23
  attr_reader :logger
24
24
  attr_reader :transfers
25
+ attr_reader :silent
25
26
 
26
27
  def initialize(direction, from, to, sessions, options={}, &block)
27
28
  @direction = direction
@@ -34,6 +35,7 @@ module Capistrano
34
35
 
35
36
  @transport = options.fetch(:via, :sftp)
36
37
  @logger = options.delete(:logger)
38
+ @silent = options.delete(:silent)
37
39
 
38
40
  @session_map = {}
39
41
 
@@ -53,15 +55,17 @@ module Capistrano
53
55
  end
54
56
  end
55
57
 
56
- failed = transfers.select { |txfr| txfr[:failed] }
57
- if failed.any?
58
- hosts = failed.map { |txfr| txfr[:server] }
59
- errors = failed.map { |txfr| "#{txfr[:error]} (#{txfr[:error].message})" }.uniq.join(", ")
60
- error = TransferError.new("#{operation} via #{transport} failed on #{hosts.join(',')}: #{errors}")
61
- error.hosts = hosts
58
+ unless silent
59
+ failed = transfers.select { |txfr| txfr[:failed] }
60
+ if failed.any?
61
+ hosts = failed.map { |txfr| txfr[:server] }
62
+ errors = failed.map { |txfr| "#{txfr[:error]} (#{txfr[:error].message})" }.uniq.join(", ")
63
+ error = TransferError.new("#{operation} via #{transport} failed on #{hosts.join(',')}: #{errors}")
64
+ error.hosts = hosts
62
65
 
63
- logger.important(error.message) if logger
64
- raise error
66
+ logger.important(error.message) if logger
67
+ raise error
68
+ end
65
69
  end
66
70
 
67
71
  logger.debug "#{transport} #{operation} complete" if logger
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: le1t0-capistrano
3
3
  version: !ruby/object:Gem::Version
4
- hash: 35
4
+ hash: 33
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 5
9
9
  - 18
10
- - 22
11
- version: 2.5.18.022
10
+ - 23
11
+ version: 2.5.18.023
12
12
  platform: ruby
13
13
  authors:
14
14
  - Le1t0
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-12-09 00:00:00 +01:00
19
+ date: 2011-02-28 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency