Class: Suture::BuildsPlan

Inherits:
Object
  • Object
show all
Defined in:
lib/suture/create/builds_plan.rb

Constant Summary collapse

UN_ENV_IABLE_OPTIONS =
[:name, :old, :new, :args, :comparator, :after_new,
:after_old, :on_new_error, :on_old_error,
:expected_error_types]

Instance Method Summary collapse

Instance Method Details

#build(name, options = {}) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/suture/create/builds_plan.rb', line 10

def build(name, options = {})
  Value::Plan.new(
    Suture.config.
      merge(options).
      merge(:name => name).
      merge(Suture::Util::Env.to_map(UN_ENV_IABLE_OPTIONS))
  )
end