Class: Thrust::Android::Deploy
- Inherits:
-
Object
- Object
- Thrust::Android::Deploy
- Defined in:
- lib/thrust/android/deploy.rb
Instance Method Summary collapse
-
#initialize(out, tools, git, testflight, deployment_config, deployment_target) ⇒ Deploy
constructor
A new instance of Deploy.
- #run ⇒ Object
Constructor Details
#initialize(out, tools, git, testflight, deployment_config, deployment_target) ⇒ Deploy
Returns a new instance of Deploy.
4 5 6 7 8 9 10 11 |
# File 'lib/thrust/android/deploy.rb', line 4 def initialize(out, tools, git, testflight, deployment_config, deployment_target) @out = out @tools = tools @git = git @testflight = testflight @deployment_config = deployment_config @deployment_target = deployment_target end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/thrust/android/deploy.rb', line 13 def run @git.ensure_clean @git.checkout_tag(@deployment_config.tag) if @deployment_config.tag @tools.change_build_number(Time.now.utc.strftime('%y%m%d%H%M'), @git.current_commit) apk_path = @tools.build_signed_release autogenerate_notes = @deployment_config.note_generation_method == 'autotag' @testflight.upload(apk_path, @deployment_config.notify, @deployment_config.distribution_list, autogenerate_notes, @deployment_target) @git.create_tag(@deployment_target) @git.reset end |