lib/eco/api/session/config/sftp.rb in eco-helpers-2.0.61 vs lib/eco/api/session/config/sftp.rb in eco-helpers-2.0.62

- old
+ new

@@ -3,11 +3,11 @@ class Session class Config class SFTP < BaseConfig def configured? - required = host && user && key_file + required = host && user && (key_file || password) !!required end def host=(value) self["host"] = value @@ -21,9 +21,17 @@ self["user"] = value end def user self["user"] + end + + def password=(var) + self["password"] = var + end + + def password + self["password"] end def key_file=(key) self["key_file"] = key end