class TripAdvisor::ReleaseBuild
Attributes
release_version[RW]
Public Class Methods
new(path, release_version)
click to toggle source
Calls superclass method
TripAdvisor::AbstractBuild::new
# File lib/trip_advisor/build.rb, line 188 def initialize(path, release_version) super(path) @release_version = release_version File.write(File.join(path, 'VERSION'), "#{release_version}") end
Public Instance Methods
build!()
click to toggle source
# File lib/trip_advisor/build.rb, line 194 def build! say "Creating Release build at path: #{path}" Dir.chdir(path) do update_build_assets pod_update! files = [podspec_file, 'BUILD.json', 'Podfile.lock', 'VERSION'] 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()
click to toggle source
# File lib/trip_advisor/build.rb, line 217 def tag_name "#{version_prefix}#{version}" end
version()
click to toggle source
# File lib/trip_advisor/build.rb, line 213 def version @version ||= "#{release_version}" end