class Terrestrial::Cli::Photoshoot
Public Instance Methods
run()
click to toggle source
# File lib/terrestrial/cli/photoshoot.rb, line 5 def run Config.load! MixpanelClient.track("cli-photoshoot-command") @scheme = opts[:scheme] validate_inputs! print_progress_message TerminalUI.show_spinner do launcher = SimulatorLauncher.new(scheme: scheme, args: { 'TerrestrialScreenShotMode' => true, 'TerrestrialAPIToken' => Config[:api_key], 'TerrestrialAppId' => Config[:app_id], 'TerrestrialProjectId' => Config[:project_id], 'TerrestrialURL' => Config[:api_url] }) launcher.run end end
Private Instance Methods
print_progress_message()
click to toggle source
# File lib/terrestrial/cli/photoshoot.rb, line 38 def print_progress_message if scheme puts "Starting simulator in photoshoot mode with scheme \"#{scheme}\"..." else puts "Starting simulator in photoshoot mode..." end end
scheme()
click to toggle source
# File lib/terrestrial/cli/photoshoot.rb, line 28 def scheme @scheme end
validate_inputs!()
click to toggle source
# File lib/terrestrial/cli/photoshoot.rb, line 32 def validate_inputs! if Config[:platform] != "ios" abort "Unfortunately photoshoot mode is only supported on iOS at this time." end end