Module: Snapshot

Defined in:
snapshot/lib/snapshot/setup.rb,
snapshot/lib/snapshot/module.rb,
snapshot/lib/snapshot/runner.rb,
snapshot/lib/snapshot/update.rb,
snapshot/lib/snapshot/options.rb,
snapshot/lib/snapshot/collector.rb,
snapshot/lib/snapshot/detect_values.rb,
snapshot/lib/snapshot/error_handler.rb,
snapshot/lib/snapshot/reset_simulators.rb,
snapshot/lib/snapshot/latest_os_version.rb,
snapshot/lib/snapshot/reports_generator.rb,
snapshot/lib/snapshot/screenshot_rotate.rb,
snapshot/lib/snapshot/commands_generator.rb,
snapshot/lib/snapshot/dependency_checker.rb,
snapshot/lib/snapshot/screenshot_flatten.rb,
snapshot/lib/snapshot/test_command_generator.rb,
snapshot/lib/snapshot/fixes/simulator_zoom_fix.rb,
snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb,
snapshot/lib/snapshot/test_command_generator_base.rb,
snapshot/lib/snapshot/test_command_generator_xcode_8.rb,
snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb,
snapshot/lib/snapshot/simulator_launchers/launcher_configuration.rb,
snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb,
snapshot/lib/snapshot/simulator_launchers/simulator_launcher_xcode_8.rb

Defined Under Namespace

Modules: Fixes Classes: CPUInspector, Collector, CommandsGenerator, DependencyChecker, DetectValues, ErrorHandler, LatestOsVersion, Options, ReportsGenerator, ResetSimulators, Runner, ScreenshotFlatten, ScreenshotRotate, Setup, SimulatorLauncher, SimulatorLauncherBase, SimulatorLauncherConfiguration, SimulatorLauncherXcode8, TestCommandGenerator, TestCommandGeneratorBase, TestCommandGeneratorXcode8, Update

Constant Summary collapse

Helper =

you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore

FastlaneCore::Helper
UI =
FastlaneCore::UI
ROOT =
Pathname.new(File.expand_path('../../..', __FILE__))
DESCRIPTION =
"Automate taking localized screenshots of your iOS and tvOS apps on every device"
CACHE_DIR =
File.join(Dir.home, "Library/Caches/tools.fastlane")
SCREENSHOTS_DIR =
File.join(CACHE_DIR, 'screenshots')
Boolean =
Fastlane::Boolean

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.cacheObject

Returns the value of attribute cache


13
14
15
# File 'snapshot/lib/snapshot/module.rb', line 13

def cache
  @cache
end

.configObject

Returns the value of attribute config


9
10
11
# File 'snapshot/lib/snapshot/module.rb', line 9

def config
  @config
end

.projectObject

Returns the value of attribute project


11
12
13
# File 'snapshot/lib/snapshot/module.rb', line 11

def project
  @project
end

Class Method Details

.kill_simulatorObject


25
26
27
28
# File 'snapshot/lib/snapshot/module.rb', line 25

def kill_simulator
  `killall 'iOS Simulator' &> /dev/null`
  `killall Simulator &> /dev/null`
end

.min_xcode7?Boolean

Returns:


41
42
43
# File 'snapshot/lib/snapshot/module.rb', line 41

def self.min_xcode7?
  xcode_version.split(".").first.to_i >= 7
end

.snapfile_nameObject


21
22
23
# File 'snapshot/lib/snapshot/module.rb', line 21

def snapfile_name
  "Snapfile"
end