Skip to content

Commit

Permalink
Enable aliases for more exotic templating situations.
Browse files Browse the repository at this point in the history
This is super useful for DRY when configuring a number of roles and you
hit the limits of what's reasonable with ERB.
  • Loading branch information
mdkent committed Nov 11, 2023
1 parent d0ac650 commit 99aedfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kamal/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def load_config_files(*files)

def load_config_file(file)
if file.exist?
YAML.load(ERB.new(IO.read(file)).result).symbolize_keys
YAML.load(ERB.new(IO.read(file)).result, aliases: true).symbolize_keys
else
raise "Configuration file not found in #{file}"
end
Expand Down

0 comments on commit 99aedfc

Please sign in to comment.