Class: Thrust::IOS::AgvTool
- Inherits:
-
Object
- Object
- Thrust::IOS::AgvTool
- Defined in:
- lib/thrust/ios/agv_tool.rb
Instance Method Summary collapse
- #change_build_number(build_number, path_to_xcodeproj) ⇒ Object
-
#initialize(thrust_executor = Thrust::Executor.new, git = Thrust::Git.new) ⇒ AgvTool
constructor
A new instance of AgvTool.
Constructor Details
#initialize(thrust_executor = Thrust::Executor.new, git = Thrust::Git.new) ⇒ AgvTool
Returns a new instance of AgvTool.
4 5 6 7 |
# File 'lib/thrust/ios/agv_tool.rb', line 4 def initialize(thrust_executor = Thrust::Executor.new, git = Thrust::Git.new) @thrust_executor = thrust_executor @git = git end |
Instance Method Details
#change_build_number(build_number, path_to_xcodeproj) ⇒ Object
9 10 11 12 13 |
# File 'lib/thrust/ios/agv_tool.rb', line 9 def change_build_number(build_number, path_to_xcodeproj) 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 |