class Fastlane::Actions::FivTakeScreenshotsAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/fivethree_ionic/actions/fiv_take_screenshots.rb, line 69
def self.authors
  # So no one will ever forget your contribution to fastlane :) You are awesome btw!
  ['Your GitHub/Twitter Name']
end
available_options() click to toggle source
# File lib/fastlane/plugin/fivethree_ionic/actions/fiv_take_screenshots.rb, line 32
def self.available_options
  # Define all options your action supports.

  # Below a few examples
  [
    FastlaneCore::ConfigItem.new(
      key: :cypress,
      env_name: 'FIV_BUILD_IONIC_ANDROID_IS_PROD',
      description: 'Dev or Prod build',
      optional: false,
      type: String
    ),
    FastlaneCore::ConfigItem.new(
      key: :spec,
      env_name: 'FIV_BUILD_IONIC_ANDROID_IS_PROD',
      description: 'Dev or Prod build',
      optional: false,
      type: String
    )
  ]
end
description() click to toggle source

@!group Documentation

# File lib/fastlane/plugin/fivethree_ionic/actions/fiv_take_screenshots.rb, line 22
def self.description
  'A short description with <= 80 characters of what this action does'
end
details() click to toggle source
# File lib/fastlane/plugin/fivethree_ionic/actions/fiv_take_screenshots.rb, line 26
def self.details
  # Optional:
  # this is your chance to provide a more detailed description of this action
  'You can use this action to do cool things...'
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/fivethree_ionic/actions/fiv_take_screenshots.rb, line 74
def self.is_supported?(platform)
  platform == :android
end
output() click to toggle source
# File lib/fastlane/plugin/fivethree_ionic/actions/fiv_take_screenshots.rb, line 54
def self.output
  # Define the shared values you are going to provide
  # Example
  [
    [
      'FIV_BUILD_IONIC_ANDROID_CUSTOM_VALUE',
      'A description of what this value contains'
    ]
  ]
end
return_value() click to toggle source
# File lib/fastlane/plugin/fivethree_ionic/actions/fiv_take_screenshots.rb, line 65
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/fivethree_ionic/actions/fiv_take_screenshots.rb, line 9
def self.run(params)
  UI.header 'Taking Screenshots...'

  sh "ionic cordova run browser --prod && #{params[:cypress]} run -s #{
       params[:spec]
     } -b chrome"
  UI.success 'Successfully finished taking screenshots'
end