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, notify, distribution_list, autogenerate_notes, deployment_target) ⇒ Deploy
constructor
A new instance of Deploy.
- #run ⇒ Object
Constructor Details
#initialize(out, tools, git, testflight, notify, distribution_list, autogenerate_notes, deployment_target) ⇒ Deploy
Returns a new instance of Deploy.
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/thrust/android/deploy.rb', line 2 def initialize(out, tools, git, testflight, notify, distribution_list, autogenerate_notes, deployment_target) @out = out @tools = tools @git = git @testflight = testflight @notify = notify @distribution_list = distribution_list @deployment_target = deployment_target @autogenerate_notes = autogenerate_notes end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/thrust/android/deploy.rb', line 13 def run @git.ensure_clean @tools.change_build_number(Time.now.utc.strftime('%y%m%d%H%M'), @git.current_commit) apk_path = @tools.build_signed_release @testflight.upload(apk_path, @notify, @distribution_list, @autogenerate_notes, @deployment_target) @git.reset end |