class Fastlane::Helper::CarthageCacheFtpsHelper
Constants
- UI
Public Class Methods
ask_password(message: "Passphrase for FTP: ", confirm: true)
click to toggle source
# File lib/fastlane/plugin/carthage_cache_ftps/helper/carthage_cache_ftps_helper.rb, line 8 def self.ask_password(message: "Passphrase for FTP: ", confirm: true) ensure_ui_interactive loop do password = UI.password(message) if confirm password2 = UI.password("Type passphrase again: ") if password == password2 return password end else return password end UI.error("Passphrases differ. Try again") end end
Private Class Methods
ensure_ui_interactive()
click to toggle source
# File lib/fastlane/plugin/carthage_cache_ftps/helper/carthage_cache_ftps_helper.rb, line 24 def self.ensure_ui_interactive raise "This code should only run in interactive mode" unless UI.interactive? end