Class: Thrust::IOS::AgvTool

Inherits:
Object
  • Object
show all
Defined in:
lib/thrust/ios/agv_tool.rb

Instance Method Summary collapse

Constructor Details

#initialize(thrust_executor, out) ⇒ AgvTool

Returns a new instance of AgvTool.



3
4
5
6
7
# File 'lib/thrust/ios/agv_tool.rb', line 3

def initialize(thrust_executor, out)
  @thrust_executor = thrust_executor
  @out = out
  @git = Thrust::Git.new(@thrust_executor, @out)
end

Instance Method Details

#change_build_number(build_number) ⇒ Object



9
10
11
12
# File 'lib/thrust/ios/agv_tool.rb', line 9

def change_build_number(build_number)
  @thrust_executor.system_or_exit "agvtool new-version -all '#{build_number}'"
  @git.checkout_file('*.xcodeproj')
end