Method: Bolt::PAL::YamlPlan::Transpiler#validate_path

Defined in:
lib/bolt/pal/yaml_plan/transpiler.rb

#validate_pathObject



62
63
64
65
66
# File 'lib/bolt/pal/yaml_plan/transpiler.rb', line 62

def validate_path
  unless File.extname(@filename) == ".yaml"
    raise ConvertError.new("You can only convert plans written in yaml", @plan_path)
  end
end