class Fastlane::Actions::FarolGetVersionAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/farol/actions/farol_get_version_action.rb, line 29 def self.available_options [ FastlaneCore::ConfigItem.new(key: :token, env_name: "TOKEN", description: "The token for your Farol App", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :platform, env_name: "PLATFORM", description: "The platform you want to get the version", optional: false, type: String) ] end
description()
click to toggle source
# File lib/fastlane/plugin/farol/actions/farol_get_version_action.rb, line 12 def self.description "Enable your app to use Farol Platform services" end
details()
click to toggle source
# File lib/fastlane/plugin/farol/actions/farol_get_version_action.rb, line 24 def self.details # Optional: "Integrate your app with the Farol Platform using services like push notifications" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/farol/actions/farol_get_version_action.rb, line 44 def self.is_supported?(platform) # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example) # See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md # # [:ios, :mac, :android].include?(platform) true end
return_value()
click to toggle source
# File lib/fastlane/plugin/farol/actions/farol_get_version_action.rb, line 20 def self.return_value # If your method provides a return value, you can describe here what it does end
run(params)
click to toggle source
# File lib/fastlane/plugin/farol/actions/farol_get_version_action.rb, line 4 def self.run(params) api = Farol::Api.new token = params[:token] verb = 'get' method = 'project/version/' + params[:platform] api.request(token, verb, method) end