Skip to content

Commit

Permalink
Merge pull request forward3d#60 from justindowning/patch-1
Browse files Browse the repository at this point in the history
Use ERB with ec2_config
  • Loading branch information
dlahn authored Aug 18, 2017
2 parents 918a802 + dcaa4c3 commit b32cf0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cap-ec2/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def load_config

config_location = File.expand_path(fetch(:ec2_config), Dir.pwd) if fetch(:ec2_config)
if config_location && File.exists?(config_location)
config = YAML.load_file fetch(:ec2_config)
config = YAML.load(ERB.new(File.read(fetch(:ec2_config))))
if config
set :ec2_project_tag, config['project_tag'] if config['project_tag']
set :ec2_roles_tag, config['roles_tag'] if config['roles_tag']
Expand Down

0 comments on commit b32cf0b

Please sign in to comment.