lib/gym/generators/build_command_generator.rb in gym-1.6.0 vs lib/gym/generators/build_command_generator.rb in gym-1.6.1
- old
+ new
@@ -76,15 +76,17 @@
FileUtils.mkdir_p(containing)
return File.join(containing, file_name)
end
- # The path to set the Derived Data to
+ # The path where archive will be created
def build_path
unless Gym.cache[:build_path]
- day = Time.now.strftime("%F") # e.g. 2015-08-07
-
- Gym.cache[:build_path] = File.expand_path("~/Library/Developer/Xcode/Archives/#{day}/")
+ Gym.cache[:build_path] = Gym.config[:build_path]
+ unless Gym.cache[:build_path]
+ day = Time.now.strftime("%F") # e.g. 2015-08-07
+ Gym.cache[:build_path] = File.expand_path("~/Library/Developer/Xcode/Archives/#{day}/")
+ end
FileUtils.mkdir_p Gym.cache[:build_path]
end
Gym.cache[:build_path]
end