Class: Fastlane::Actions::SftpUploadAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::SftpUploadAction
- Defined in:
- lib/fastlane/plugin/sftp/actions/sftp_upload.rb
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
37 38 39 |
# File 'lib/fastlane/plugin/sftp/actions/sftp_upload.rb', line 37 def self. ['[email protected]'] end |
.available_options ⇒ Object
33 34 35 |
# File 'lib/fastlane/plugin/sftp/actions/sftp_upload.rb', line 33 def self. Sftp::Options. end |
.description ⇒ Object
24 25 26 |
# File 'lib/fastlane/plugin/sftp/actions/sftp_upload.rb', line 24 def self.description 'upload files to a remote Server via SFTP' end |
.details ⇒ Object
28 29 30 31 |
# File 'lib/fastlane/plugin/sftp/actions/sftp_upload.rb', line 28 def self.details # Optional: "TODO" end |
.is_supported?(platform) ⇒ Boolean
41 42 43 |
# File 'lib/fastlane/plugin/sftp/actions/sftp_upload.rb', line 41 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_upload.rb', line 8 def self.run(params) # sh 'bundle exec rubocop -D' FastlaneCore::PrintTable.print_values(config: params, hide_keys: [:server_password], mask_keys: [:server_key, :server_key_passphrase], title: "SFTP Upload #{Sftp::VERSION} Summary") UI.success('SFTP Uploader running...') uploader = Sftp::Uploader.new(params) result = uploader.upload msg = 'Upload failed. Check out the error above.' UI.user_error!(msg) unless result UI.success('Finished the upload.') end |