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

[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

[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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Validate]