Skip to content

Commit

Permalink
testflight method will yield object if given the block
Browse files Browse the repository at this point in the history
We could configure for testflight with block parameter. like:

    app.testflight do |flight|
      flight.sdk = 'vendor/TestFlight'
      flight.api_token = '<insert your API token here>'
      flight.team_token = '<insert your team token here>'
      flight.notify = true # default is false
    end
  • Loading branch information
Watson1978 committed Oct 6, 2012
1 parent ac8b9b1 commit 3fd486d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/motion/project/testflight.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module Motion; module Project; class Config

def testflight
@testflight ||= TestFlightConfig.new(self)
yield if block_given? && testflight?
yield @testflight if block_given? && testflight?
@testflight
end

Expand Down

0 comments on commit 3fd486d

Please sign in to comment.