Upgrade to Pro — share decks privately, control downloads, hide ads and more …

cpanfileの更新を 自動化したい

hitode909
September 18, 2020

cpanfileの更新を 自動化したい

hitode909

September 18, 2020
Tweet

More Decks by hitode909

Other Decks in Programming

Transcript

  1. DQBOpMFͷߋ৽Λ
    ࣗಈԽ͍ͨ͠
    ٢঵ࣉQN
    IJUPEF

    View full-size slide

  2. ۙ೥ͷιϑτ΢ΣΞ։ൃ
    ґଘϥΠϒϥϦͷߋ৽͕ࣗಈԽ

    View full-size slide

  3. ϥΠϒϥϦ͕ϦϦʔε͞ΕΔͱ
    ߋ৽13Λૹͬͯ͘ΕΔ

    View full-size slide

  4. ͷ࢓૊Έ
    ϦϙδτϦΛDMPOF
    มߋΛ1VMM3FRVFTUԽ
    ґଘϥΠϒϥϦΛύʔε
    ߋ৽͕͋Ε͹มߋ
    ࠷৽ͷόʔδϣϯΛऔಘ
    ఆظతʹىಈ

    View full-size slide

  5. ͞·͟·ͳݴޠʹରԠ

    View full-size slide

  6. ͞·͟·ͳݴޠʹରԠ
    1FSMඇରԠ

    View full-size slide

  7. 1FSMͰ΋
    ࣗಈߋ৽
    ͨ͗͢͠Δ

    View full-size slide

  8. DQBOpMFࣗಈߋ৽͍ͨ͠
    ґଘϥΠϒϥϦΛύʔε
    ߋ৽͕͋Ε͹มߋ
    ࠷৽ͷόʔδϣϯΛऔಘ
    ఆظతʹىಈ
    ϦϙδτϦΛDMPOF
    มߋΛ1VMM3FRVFTUԽ

    View full-size slide

  9. ੍໿
    ͸ ඇରԠ
    ͸ґଘϥΠϒϥϦΛ
    Ͱύʔε͍ͯ͠Δ
    DQBOpMF͸ ͷ%4-

    View full-size slide

  10. ਖ਼نදݱͰ(FNpMFͷύʔε

    View full-size slide

  11. ͜͜Ͱ
    ࿕ใ

    View full-size slide

  12. Ͱ࣮૷͢Ε͹
    ͷϥΠϒϥϦΛ࢖͑Δ

    View full-size slide

  13. ʙ͸ϥΠϒϥϦΛ࢖ͬͯղܾ
    ґଘϥΠϒϥϦΛύʔε
    ߋ৽͕͋Ε͹มߋ
    ࠷৽ͷόʔδϣϯΛऔಘ
    ఆظతʹىಈ
    Module::CPANfile::Writer
    Module::CPANfile
    CPAN::PackageDetails
    ϦϙδτϦΛDMPOF
    มߋΛ1VMM3FRVFTUԽ

    View full-size slide

  14. ͞Βʹ
    ࿕ใ

    View full-size slide

  15. (JU)VC"DUJPOT
    (JU)VCʹ౷߹͞Εͨ$*؀ڥ
    DMPOFఆظ࣮ߦ1VMM3FRVFTU࡞੒
    ͳͲ͕Ͱ͖Δ

    View full-size slide

  16. Λ(JU)VC"DUJPOTʹ೚ͤΔ
    ಓ۩͕ଗͬͨͷͰ͋ͱ͸࣮૷͢Δ͚ͩ
    ґଘϥΠϒϥϦΛύʔε
    ߋ৽͕͋Ε͹มߋ
    ࠷৽ͷόʔδϣϯΛऔಘ
    ఆظతʹىಈ
    Module::CPANfile::Writer
    Module::CPANfile
    CPAN::PackageDetails
    ϦϙδτϦΛDMPOF
    มߋΛ1VMM3FRVFTUԽ

    View full-size slide

  17. "QQ6QEBUF$1"/pMF
    IUUQTHJUIVCDPNIJUPEF"QQ6QEBUF$1"/pMF
    DQBON"QQ6QEBUF$1"/pMF

    View full-size slide

  18. 1FSM੡$-*πʔϧ
    ؆୯εςοϓ
    QJOEFQFOEFODJFT
    VQEBUFEFQFOEFODJFT

    View full-size slide

  19. Πϯετʔϧ͞Ε͍ͯΔϥΠϒϥϦͱόʔδϣϯΛύʔε
    DQBOpMFʹॻ͖໭͢
    VQEBUFDQBOpMFQJO
    DQBOpMFTOBQTIPUʹه࿥͞Ε͍ͯΔ
    όʔδϣϯΛDQBOpMFʹॻ͖໭͢
    VQEBUF࣌ʹEJGGΛݟ΍͘͢ͳΔ

    View full-size slide

  20. VQEBUFDQBOpMFQJO
    DQBOpMFTOBQTIPUʹه࿥͞Ε͍ͯΔ
    όʔδϣϯΛDQBOpMFʹॻ͖໭͢
    VQEBUF࣌ʹEJGGΛݟ΍͘͢ͳΔ

    View full-size slide

  21. ཁٻ͞Ε͍ͯΔϥΠϒϥϦͱόʔδϣϯΛύʔε
    ࠷৽όʔδϣϯΛDQBOpMFʹॻ͖ࠐΉ
    ࠷৽ͷόʔδϣϯΛऔಘ
    VQEBUFDQBOpMFVQEBUF
    $1"/ͷ࠷৽όʔδϣϯʹDQBOpMFΛߋ৽

    View full-size slide

  22. VQEBUFDQBOpMFVQEBUF
    $1"/ͷ࠷৽όʔδϣϯʹDQBOpMFΛߋ৽

    View full-size slide

  23. (JU)VC
    "DUJPOT͔Β
    ఆظ࣮ߦ

    View full-size slide

  24. (JU)VC"DUJPOT͔Βఆظ࣮ߦ
    BDUJPOTDIFDLPVUͰDIFDLPVU
    %PDLFS্Ͱ1FSMΛ࣮ߦ
    VQEBUFDQBOpMFVQEBUFPVUQVUKTPO
    KRίϚϯυͰ݁ՌΛ.BSLEPXOʹॻ͖׵͑
    QFUFSFWBOTDSFBUFQVMMSFRVFTUͰ13Խ
    IUUQTHJUIVCDPNIJUPEF"QQ6QEBUF$1"/pMFCMPCNBTUFSHJUIVCXPSLqPXTVQEBUFDQBOpMFZNM

    View full-size slide

  25. ੜ੒͞Εͨ1VMM3FRVFTU
    ߦϥΠϒϥϦ
    NFUBDQBOͱ$IBOHFTʹϦϯΫ
    IUUQTHJUIVCDPNIJUPEF"QQ6QEBUF$1"/pMFQVMM

    View full-size slide

  26. ͸ͯͳϚϯΨνʔϜͰͷࣄྫ

    View full-size slide

  27. ೔ݸ13ΛૹΔ
    ϨϏϡϫʔΛϥϯμϜΞαΠϯ
    ϲ݄Ͱ13Ϛʔδ
    "͔Β͸͡Ίͯݱࡏ'

    View full-size slide

  28. ·ͱΊ
    1FSMͰ΋DQBOpMFࣗಈߋ৽Ͱ͖Δ
    ଞݴޠͷࣄྫΛࢀߟʹ1FSM༻ʹ࠶࣮૷
    ͢Δͱศརͳωλ͕స͕͍ͬͯΔ͔΋

    View full-size slide

  29. 1FSMͰ΋
    ࣗಈߋ৽
    Ͱ͖·ͨ͠

    View full-size slide