Class: KnapsackPro::Client::API::V1::BuildDistributions
- Defined in:
- lib/knapsack_pro/client/api/v1/build_distributions.rb
Class Method Summary collapse
Class Method Details
.last(args) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/knapsack_pro/client/api/v1/build_distributions.rb', line 22 def last(args) action_class.new( endpoint_path: '/v1/build_distributions/last', http_method: :get, request_hash: { :commit_hash => args.fetch(:commit_hash), :branch => args.fetch(:branch), :node_total => args.fetch(:node_total), :node_index => args.fetch(:node_index), } ) end |
.subset(args) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/knapsack_pro/client/api/v1/build_distributions.rb', line 7 def subset(args) action_class.new( endpoint_path: '/v1/build_distributions/subset', http_method: :post, request_hash: { :fixed_test_suite_split => KnapsackPro::Config::Env.fixed_test_suite_split, :commit_hash => args.fetch(:commit_hash), :branch => args.fetch(:branch), :node_total => args.fetch(:node_total), :node_index => args.fetch(:node_index), :test_files => args.fetch(:test_files) } ) end |