Sha256: a7efd9de59e0d849eecd8ae81a6b255b8b8e6494dfaee601c8d826829f2cb8e6
Contents?: true
Size: 692 Bytes
Versions: 45
Compression:
Stored size: 692 Bytes
Contents
module Eco module API class Session class Config class SFTP < BaseConfig attr_key :host, :user attr_key :password, :key_file attr_key :base_path, :enviro_subpaths def configured? required = host && user && (key_file || password) !!required end def enviro_subpaths self['enviro_subpaths'] ||= {} end def enviro_subpath enviro_subpaths[config.active_enviro] end def remote_folder [base_path, enviro_subpath].compact.join("/") end end end end end end
Version data entries
45 entries across 45 versions & 1 rubygems