class Fastlane::Actions::TunesAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/tunes/actions/tunes_action.rb, line 12
def self.authors
  ["Boris Bügling"]
end
available_options() click to toggle source
# File lib/fastlane/plugin/tunes/actions/tunes_action.rb, line 16
def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :file_path,
                            env_name: "TUNES_FILE_PATH",
                         description: "Specify the path of the audio file to play",
                            optional: false,
                                type: String)
  ]
end
description() click to toggle source
# File lib/fastlane/plugin/tunes/actions/tunes_action.rb, line 8
def self.description
  "Play music using fastlane, because you can."
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/tunes/actions/tunes_action.rb, line 26
def self.is_supported?(platform)
  [:ios, :mac, :android, :caros, :rocketos, :napos].include?(platform)
end
run(params) click to toggle source
# File lib/fastlane/plugin/tunes/actions/tunes_action.rb, line 4
def self.run(params)
  sh "afplay '#{params[:file_path]}'"
end