Module: Troops
- Defined in:
- lib/troops.rb,
lib/troops/configuration.rb
Defined Under Namespace
Classes: Configuration
Class Method Summary collapse
Class Method Details
.archive(args) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/troops.rb', line 12 def archive(args) @environment = args[:environment] @log = args[:log] $stdout.reopen("output.txt", "w") unless @log warn "--- Start archiving" configure do beta_build = build_task archive_build beta_build clear_builds unless @log end end |
.clean ⇒ Object
8 9 10 |
# File 'lib/troops.rb', line 8 def clean clear_builds end |
.deploy(args) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/troops.rb', line 28 def deploy(args) @environment = args[:environment] @needs_to_archive = args[:needs_to_archive] @needs_to_distribute = args[:needs_to_distribute] @log = args[:log] $stdout.reopen("output.txt", "w") unless @log warn "--- Start deploying" configure do get_release_notes @release_notes = "No release notes specified in troops" if @release_notes.nil? || @release_notes.strip == "" beta_build = build_task beta_config = archive_build beta_build if @needs_to_archive deploy_build_to_testflight beta_build clear_builds unless @log end end |