Class: Capistrano::Transfer::SFTPTransferWrapper

Class | Capistrano::Transfer::SFTPTransferWrapper
In: | lib/capistrano/transfer.rb lib/capistrano/transfer.rb
Parent: | Object

### Methods

[] [] []= []= abort! abort! active? active? new new

### Attributes

operation | [R] |
operation | [R] |

### Public Class methods

new(session, &callback)

[Source]

         # File lib/capistrano/transfer.rb, line 141
    141:         def initialize(session, &callback)
    142:           session.sftp(false).connect do |sftp|
    143:             @operation = callback.call(sftp)
    144:           end
    145:         end

new(session, &callback)

[Source]

         # File lib/capistrano/transfer.rb, line 141
    141:         def initialize(session, &callback)
    142:           session.sftp(false).connect do |sftp|
    143:             @operation = callback.call(sftp)
    144:           end
    145:         end

### Public Instance methods

[](key)

[Source]

         # File lib/capistrano/transfer.rb, line 151
    151:         def [](key)
    152:           @operation[key]
    153:         end

[](key)

[Source]

         # File lib/capistrano/transfer.rb, line 151
    151:         def [](key)
    152:           @operation[key]
    153:         end

[]=(key, value)

[Source]

         # File lib/capistrano/transfer.rb, line 155
    155:         def []=(key, value)
    156:           @operation[key] = value
    157:         end

[]=(key, value)

[Source]

         # File lib/capistrano/transfer.rb, line 155
    155:         def []=(key, value)
    156:           @operation[key] = value
    157:         end

abort!()

[Source]

         # File lib/capistrano/transfer.rb, line 159
    159:         def abort!
    160:           @operation.abort!
    161:         end

abort!()

[Source]

         # File lib/capistrano/transfer.rb, line 159
    159:         def abort!
    160:           @operation.abort!
    161:         end

active?()

[Source]

         # File lib/capistrano/transfer.rb, line 147
    147:         def active?
    148:           @operation.nil? || @operation.active?
    149:         end

active?()

[Source]

         # File lib/capistrano/transfer.rb, line 147
    147:         def active?
    148:           @operation.nil? || @operation.active?
    149:         end

[Validate]