Sha256: bb3265eb589f6c902c2fb49f1255936108e1a88301b25836d3a3fef7702e63b3

Contents?: true

Size: 819 Bytes

Versions: 1

Compression:

Stored size: 819 Bytes

Contents

module WssAgent
  class ResponseInventory < Response

    def message
      if success?
        @message = "White Source update results: \n"
        @message << "  White Source organization: #{data['organization']} \n"

        if data['createdProjects'].empty?
          @message << "  No new projects found \n"
        else
          @message << "  #{data['createdProjects'].size} newly created projects: "
          @message << data['createdProjects'].join(' ')
        end

        if data['updatedProjects'].empty?
          @message << "\n  No projects were updated \n"
        else
          @message << "  #{data['updatedProjects'].size} existing projects were updated: "
          @message << data['updatedProjects'].join(' ')
        end

        @message
      else
        super
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wss_agent-0.0.26 lib/wss_agent/response_inventory.rb