Class: KnapsackPro::Client::API::V1::BuildSubsets

Inherits:
Base
  • Object
show all
Defined in:
lib/knapsack_pro/client/api/v1/build_subsets.rb

Class Method Summary collapse

Class Method Details

.create(args) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/knapsack_pro/client/api/v1/build_subsets.rb', line 7

def create(args)
  action_class.new(
    endpoint_path: '/v1/build_subsets',
    http_method: :post,
    request_hash: {
      :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