new_version

in lib/omnibus/cli/changelog.rb [110:123]


    def new_version
      if @options[:version]
        @options[:version]
      elsif @options[:patch]
        Omnibus::SemanticVersion.new(local_git_repo.latest_tag).next_patch.to_s
      elsif @options[:minor] && !@options[:major] 
        Omnibus::SemanticVersion.new(local_git_repo.latest_tag).next_minor.to_s
      elsif @options[:major]
        Omnibus::SemanticVersion.new(local_git_repo.latest_tag).next_major.to_s
      elsif @options[:ending_manifest]
        new_manifest.build_version
      end
    end