bin/snapshot in snapshot-0.4.13 vs bin/snapshot in snapshot-0.5.0
- old
+ new
@@ -32,10 +32,11 @@
c.description = 'Take new screenshots based on the Snapfile.'
c.action do |args, options|
path = (Snapshot::Helper.fastlane_enabled?? './fastlane' : '.')
Dir.chdir(path) do # switch the context
+ Snapshot::DependencyChecker.check_simulators
Snapshot::SnapshotConfig.shared_instance(options.snapfile)
Snapshot::Runner.new.work(clean: !options.noclean)
end
end
end
@@ -54,10 +55,10 @@
c.syntax = 'snapshot reset_simulators'
c.description = "This will remove all your existing simulators and re-create new ones"
c.option '-i', '--ios String', String, 'The iOS Version you want to use'
c.action do |args, options|
- version = options.ios || ENV["SNAPSHOT_IOS_VERSION"] || Snapshot::LatestIosVersion::VERSION
+ version = options.ios || Snapshot::LatestIosVersion.version
require 'snapshot/reset_simulators'
Snapshot::ResetSimulators.clear_everything!(version)
end
end
\ No newline at end of file