class Bump::CLI::Commands::Validate

Public Instance Methods

call(file:, **options) click to toggle source
# File lib/bump/cli/commands/validate.rb, line 19
def call(file:, **options)
  with_errors_rescued do
    response = post(
      url: API_URL + "/validations",
      body: body(file, **options).to_json,
      token: options[:token]
    )

    if response.code == 200
      puts "Definition is valid."
    else
      display_error(response)
    end
  end
end