class KnapsackPro::Client::API::V1::BuildSubsets

Public Class Methods

create(args) click to toggle source
# File lib/knapsack_pro/client/api/v1/build_subsets.rb, line 9
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