Class: Thrust::AgvTool
- Inherits:
-
Object
- Object
- Thrust::AgvTool
- Defined in:
- lib/thrust/agv_tool.rb
Instance Method Summary collapse
- #change_build_number(build_number, timestamp = nil, path_to_xcodeproj = nil) ⇒ Object
-
#initialize(thrust_executor = Thrust::Executor.new, git = Thrust::Git.new) ⇒ AgvTool
constructor
A new instance of AgvTool.
Constructor Details
Instance Method Details
#change_build_number(build_number, timestamp = nil, path_to_xcodeproj = nil) ⇒ Object
8 9 10 11 12 |
# File 'lib/thrust/agv_tool.rb', line 8 def change_build_number(build_number, = nil, path_to_xcodeproj = nil) path_to_xcodeproj = path_to_xcodeproj ? File.dirname(path_to_xcodeproj) : '.' @thrust_executor.system_or_exit "cd #{path_to_xcodeproj} && agvtool new-version -all '#{ ? + '-' : ''}#{build_number}'" @git.checkout_file("#{path_to_xcodeproj}/*.xcodeproj") end |