Class: BetaBuilder::ArchivedBuild

Inherits:
Object
  • Object
show all
Defined in:
lib/beta_builder/archived_build.rb

Instance Method Summary collapse

Constructor Details

#initialize(configuration) ⇒ ArchivedBuild

Returns a new instance of ArchivedBuild.



15
16
17
18
# File 'lib/beta_builder/archived_build.rb', line 15

def initialize(configuration)
  @configuration = configuration
  @uuid = UUID.generate.upcase
end

Instance Method Details

#save_to(path) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/beta_builder/archived_build.rb', line 20

def save_to(path)
  archive_path = File.join(path, "#{@uuid}.apparchive")
  FileUtils.mkdir(archive_path)
  FileUtils.cp_r(@configuration.built_app_path, archive_path)
  FileUtils.cp_r(@configuration.built_app_dsym_path, archive_path)
  archive_path
end