Class: Squarespace::Sync::Connection
- Inherits:
-
Thor
- Object
- Thor
- Squarespace::Sync::Connection
- Defined in:
- lib/squarespace/sync/connection.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize(&block) ⇒ Connection
Returns a new instance of Connection.
7 8 9 10 11 12 13 |
# File 'lib/squarespace/sync/connection.rb', line 7 def initialize(&block) = Squarespace::Sync. Net::SFTP.start([:host], [:username], password: [:password], port: [:port]) do |sftp| block.call( sftp, , self ) end end |