Class: KnapsackPro::BuildDistributionFetcher
- Inherits:
-
Object
- Object
- KnapsackPro::BuildDistributionFetcher
- Defined in:
- lib/knapsack_pro/build_distribution_fetcher.rb
Direct Known Subclasses
Defined Under Namespace
Classes: BuildDistributionEntity
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/knapsack_pro/build_distribution_fetcher.rb', line 23 def call connection = KnapsackPro::Client::Connection.new(build_action) response = connection.call if connection.success? raise ArgumentError.new(response) if connection.errors? BuildDistributionEntity.new(response) else KnapsackPro.logger.warn("Failed to fetch slow test files. Split by Test Examples disabled. See: #{KnapsackPro::Urls::SPLIT_BY_TEST_EXAMPLES}") BuildDistributionEntity.new({ 'time_execution' => 0.0, 'test_files' => [] }) end end |