class Fastlane::Actions::SftpDownloadAction

Public Class Methods

author() click to toggle source
# File lib/fastlane/plugin/sftp/actions/sftp_download.rb, line 36
def self.author
  'oklimberg'
end
available_options() click to toggle source
# File lib/fastlane/plugin/sftp/actions/sftp_download.rb, line 32
def self.available_options
  Sftp::Options.available_options_download
end
category() click to toggle source
# File lib/fastlane/plugin/sftp/actions/sftp_download.rb, line 44
def self.category
  :misc
end
description() click to toggle source

@!group Documentation

# File lib/fastlane/plugin/sftp/actions/sftp_download.rb, line 24
def self.description
  'download files from a remote Server via SFTP'
end
details() click to toggle source
# 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) click to toggle source
# File lib/fastlane/plugin/sftp/actions/sftp_download.rb, line 40
def self.is_supported?(platform)
  true
end
run(params) click to toggle source
# 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