8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/fastlane/actions/snapshot.rb', line 8
def self.run(params)
clean = true
clean = false if params.include?(:noclean)
$verbose = true if params.include?(:verbose)
if Helper.test?
Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH] = Dir.pwd
return clean
end
require 'snapshot'
Dir.chdir(FastlaneFolder.path) do
Snapshot::SnapshotConfig.shared_instance
Snapshot::Runner.new.work(clean: clean)
results_path = Snapshot::SnapshotConfig.shared_instance.screenshots_path
Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH] = File.expand_path(results_path) end
end
|