DISQUS

Astrails - Hi End Web Technology: Astrails astrails-safe 0.2.5

  • Daniele · 1 month ago
    Hi, excellent work!
    Why not add port option to sftp? :)

    module Astrails
    module Safe
    class Sftp < Sink
    .....
    def save
    .....
    unless $DRY_RUN || $LOCAL
    opts = {}
    opts[:password] = password if password
    opts[:port] = port if port
    ....
    end
    ....
    end
    ....
    def port
    @config[:sftp, :port]
    end

    end
    end
    end
  • astrails · 1 month ago
    Hi Daniele.
    A patch will be welcome :)
    Otherwise I'll do it once either:
    * I have some spare time
    * I need it myself
    * someone else does it :)
  • Daniele · 1 month ago
    Patch sent to your email :)
  • vitaly · 1 month ago
    Thanks.
    Merged. its in the latest version on github.
    Please test and tell me if it works :) (I don't use SFTP, only local and s3)