bugfix: generate archive in current folder

instead of e.g. the rubygems location somewhere on the system
This commit is contained in:
Dominik Richter 2016-02-21 22:13:38 +01:00 committed by Stephan Renatus
parent 1e1e473cb0
commit 07ae2afd3b

View file

@ -199,7 +199,7 @@ module Inspec
archive = Pathname.new(opts[:archive])
else
slug = profile_name.downcase.strip.tr(' ', '-').gsub(/[^\w-]/, '_')
archive = Pathname.new(File.dirname(__FILE__)).join('../..', "#{slug}.#{ext}")
archive = Pathname.new(Dir.pwd).join("#{slug}.#{ext}")
end
# check if file exists otherwise overwrite the archive