lib/godofwar/payloads.rb
def payloads
      @payloads_info.map do |payload, info |
        name = payload
        desc = info["desc"]
        os   = info["os"]
        conf = info["conf"]
        url  = info["url"]
        ref  = info["ref"]
        path = File.join(HOME, payload)
        Payload.new(name, desc, os, conf, url, ref, path)
      end
    end
#
# payloads lists all payloads as [Payload] objects
#
# @return [Array<Payload>]
#
payloads lists all payloads as [Payload] objects
payloads lists all payloads as [ Payload ] objects
def payloads
      @payloads_info.map do |payload, info |
        name = payload
        desc = info["desc"]
        os   = info["os"]
        conf = info["conf"]
        url  = info["url"]
        ref  = info["ref"]
        path = File.join(HOME, payload)
        Payload.new(name, desc, os, conf, url, ref, path)
      end
    end
def payloads @payloads_info . map do | payload , info | name = payload desc = info [ "desc" ] os = info [ "os" ] conf = info [ "conf" ] url = info [ "url" ] ref = info [ "ref" ] path = File . join ( HOME , payload ) Payload . new ( name , desc , os , conf , url , ref , path ) end end
payloads lists all payloads as [Payload] objects
payloads lists all payloads as [ Payload ] objects
None
Array<Payload>