Class: Fastlane::Actions::ScreenshotbotInstallerAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/screenshotbot/actions/screenshotbot_installer_action.rb

Class Method Summary collapse

Class Method Details

.authorsObject



17
18
19
# File 'lib/fastlane/plugin/screenshotbot/actions/screenshotbot_installer_action.rb', line 17

def self.authors
  ["[email protected]"]
end

.available_optionsObject



21
22
23
# File 'lib/fastlane/plugin/screenshotbot/actions/screenshotbot_installer_action.rb', line 21

def self.available_options
  []
end

.descriptionObject



13
14
15
# File 'lib/fastlane/plugin/screenshotbot/actions/screenshotbot_installer_action.rb', line 13

def self.description
  "Installs the screenshotbot runner"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/fastlane/plugin/screenshotbot/actions/screenshotbot_installer_action.rb', line 25

def self.is_supported?(platform)
  true
end

.run(params) ⇒ Object



6
7
8
9
10
11
# File 'lib/fastlane/plugin/screenshotbot/actions/screenshotbot_installer_action.rb', line 6

def self.run(params)
  command = "curl https://screenshotbot.io/recorder.sh | sh"
  Actions.sh(command)
rescue StandardError => e
  UI.crash!("Error running Screenshotbot Installer: #{e.message}")
end