snapshot/lib/snapshot/commands_generator.rb in fastlane-2.24.0.beta.20170327010009 vs snapshot/lib/snapshot/commands_generator.rb in fastlane-2.24.0.beta.20170328010037
- old
+ new
@@ -42,10 +42,10 @@
c.syntax = 'fastlane snapshot init'
c.description = "Creates a new Snapfile in the current directory"
c.action do |args, options|
require 'snapshot/setup'
- path = (Snapshot::Helper.fastlane_enabled? ? './fastlane' : '.')
+ path = Snapshot::Helper.fastlane_enabled? ? FastlaneCore::FastlaneFolder.path : '.'
Snapshot::Setup.create(path)
end
end
command :update do |c|