lib/inspec/profile.rb in inspec-1.7.2 vs lib/inspec/profile.rb in inspec-1.8.0

- old
+ new

@@ -397,12 +397,15 @@ end name = params[:name] || fail('Cannot create an archive without a profile name! Please '\ 'specify the name in metadata or use --output to create the archive.') + version = params[:version] || + fail('Cannot create an archive without a profile version! Please '\ + 'specify the version in metadata or use --output to create the archive.') ext = opts[:zip] ? 'zip' : 'tar.gz' slug = name.downcase.strip.tr(' ', '-').gsub(/[^\w-]/, '_') - Pathname.new(Dir.pwd).join("#{slug}.#{ext}") + Pathname.new(Dir.pwd).join("#{slug}-#{version}.#{ext}") end def load_params params = @source_reader.metadata.params params[:name] = @profile_id unless @profile_id.nil?