# File lib/fpm/package.rb, line 460 def version if instance_variable_defined?(:@version) && !@version.nil? return @version elsif attributes[:version_given?] # 'version_given?' will be true in cases where the # fpm command-line tool has been given '-v' or '--version' settings # We do this check because the default version is "1.0" # on the fpm command line. return attributes.fetch(:version) end # No version yet, nil. return nil end