Class: Fastlane::Actions::SftpDownloadAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::SftpDownloadAction
- Defined in:
- lib/fastlane/plugin/sftp/actions/sftp_download.rb
Documentation collapse
- .author ⇒ Object
- .available_options ⇒ Object
- .category ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
Class Method Summary collapse
Class Method Details
.author ⇒ Object
36 37 38 |
# File 'lib/fastlane/plugin/sftp/actions/sftp_download.rb', line 36 def self. 'oklimberg' end |
.available_options ⇒ Object
32 33 34 |
# File 'lib/fastlane/plugin/sftp/actions/sftp_download.rb', line 32 def self. Sftp::Options. end |
.category ⇒ Object
44 45 46 |
# File 'lib/fastlane/plugin/sftp/actions/sftp_download.rb', line 44 def self.category :misc end |
.description ⇒ Object
24 25 26 |
# File 'lib/fastlane/plugin/sftp/actions/sftp_download.rb', line 24 def self.description 'download files from a remote Server via SFTP' end |
.details ⇒ Object
28 29 30 |
# File 'lib/fastlane/plugin/sftp/actions/sftp_download.rb', line 28 def self.details "More information: https://github.com/oklimberg/fastlane-plugin-sftp/" end |
.is_supported?(platform) ⇒ Boolean
40 41 42 |
# File 'lib/fastlane/plugin/sftp/actions/sftp_download.rb', line 40 def self.is_supported?(platform) true end |
.run(params) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fastlane/plugin/sftp/actions/sftp_download.rb', line 8 def self.run(params) # sh 'bundle exec rubocop -D' FastlaneCore::PrintTable.print_values(config: params, mask_keys: [:server_password, :server_key, :server_key_passphrase], title: "SFTP Download #{Sftp::VERSION} Summary") UI.success('SFTP Downloader running...') downloader = Sftp::Downloader.new(params) result = downloader.download msg = 'Download failed. Check out the error above.' UI.user_error!(msg) unless result UI.success('Finished the download.') end |