lib/terragov/cli.rb in terragov-0.3.1 vs lib/terragov/cli.rb in terragov-0.3.1.1
- old
+ new
@@ -240,10 +240,10 @@
def run_deployment(file, group, command)
abort("Must set deployment file: --file") unless file
abort("Must set command to run: --command") unless command
abort("Cannot find deployment file: #{file}") unless File.exist?(file)
- deployment_file = YAML.load_file(file)
+ deployment_file = YAML.load_file(File.expand_path(file))
deployment_config = deployment_file[group]
if deployment_config.nil?
abort("Deployment configuration must be an array of projects to run")
end