Class: BetaBuilder::ArchivedBuild
- Inherits:
-
Object
- Object
- BetaBuilder::ArchivedBuild
- Defined in:
- lib/beta_builder/archived_build.rb
Instance Method Summary collapse
-
#initialize(configuration) ⇒ ArchivedBuild
constructor
A new instance of ArchivedBuild.
- #save_to(path) ⇒ Object
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 |