Class: TripAdvisor::AdHocBuild
- Inherits:
-
AbstractBuild
- Object
- AbstractBuild
- TripAdvisor::AdHocBuild
- Defined in:
- lib/trip_advisor/build.rb
Instance Attribute Summary
Attributes inherited from AbstractBuild
#info, #path, #pod_repo, #remotes, #repo, #reporter, #version_prefix
Instance Method Summary collapse
Methods inherited from AbstractBuild
#author, #commit!, #initialize, #pod_update!, #podspec_file, #push!, #push_podspec!, #release_version, #run, #tag!, #update_build_assets, #update_staging_area
Constructor Details
This class inherits a constructor from TripAdvisor::AbstractBuild
Instance Method Details
#build! ⇒ Object
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/trip_advisor/build.rb', line 157 def build! say "Creating AdHoc build at path: #{path}" Dir.chdir(path) do update_build_assets pod_update! files = [podspec_file, 'BUILD.json', 'Podfile.lock'] target = commit!(files) say "Committed updates to #{files.join(', ')} (ref: #{target})" tag!(target) say "Tagged build as #{tag_name}" push! say "Pushed to #{remotes.join(', ')}" push_podspec! say "Pushed podspec to spec repository '#{pod_repo}'" update_staging_area(files) end say "Build complete." end |
#tag_name ⇒ Object
180 181 182 |
# File 'lib/trip_advisor/build.rb', line 180 def tag_name "builds/#{version_prefix}#{version}" end |
#version ⇒ Object
176 177 178 |
# File 'lib/trip_advisor/build.rb', line 176 def version @version ||= "#{release_version}-b#{info.}" end |