class Locked::Commands::Verify
Public Class Methods
new(context)
click to toggle source
# File lib/locked/commands/verify.rb, line 6 def initialize(context) @context = context end
Public Instance Methods
build(path, body, **options)
click to toggle source
# File lib/locked/commands/verify.rb, line 10 def build(path, body, **options) context = Locked::Context::Merger.call(@context, options[:context]) context = Locked::Context::Sanitizer.call(context) body_with_context = body.merge(context: context) Locked::Command.new(path, body_with_context, :post) end