introduction to Amazon::S3::Thin

7b606c5039f083d13e2d2320ce6ddcfa?s=47 DQNEO
September 14, 2018

introduction to Amazon::S3::Thin

Amazon::S3::Thin というモジュールを作ったので紹介です。

7b606c5039f083d13e2d2320ce6ddcfa?s=128

DQNEO

September 14, 2018
Tweet

Transcript

  1. !%2/&0 Ͳ͖ΎͶ͓ BU.FSDBSJ *OD SPQQPOHJQN "NB[PO45IJO ͷ঺հ

  2. w "NB[PO45IJOͷ঺հ w ։ൃͷಈػ w ઃܭ͢Δͱ͖ʹߟ͑ͨ͜ͱ ΞδΣϯμ

  3. "NB[PO4 w "84ͷετϨʔδαʔϏε w Ұछͷ,74 w େ͖ΊͷϑΝΠϧΛେྔอଘ͢Δͷ ʹ޲͍ͯΔ ը૾΍ϩάอଘɾը૾഑ ৴౳

     w )5513&45"1*Ͱૢ࡞
  4. 43FTU"1*Λୟ͘ϥΠϒϥϦ w 5IJO w -PXMFWFM w -PXMFBSOJOHDPTU w 4JHOBUVSFWରԠ OFX

    "NB[PO45IJO
  5. 4:/014*4 όέοτ ໊લۭؒ Λ࡞੒ SFTQPOTFTDMJFOUQVU@CVDLFU CVDLFU  όέοτʹΦϒδΣΫτΛอଘ SFTQPOTFTDMJFOUQVU@PCKFDU CVDLFU

    LFZ  lIFMMPXPSME  ΦϒδΣΫτΛऔಘ SFTQPOTFTDMJFOUHFU@PCKFDU CVDLFU LFZ  QSJOUSFTQPOTFDPOUFOUIFMMPXPSME
  6. 5IJO SFTTDMJFOUQVU@CVDLFU CVDLFU  ಺෦తʹ͸͜͏ͳ͍ͬͯΔ SFRTFMG@DPNQPTF@SFRVFTU b165` ʜ  SFTVTFS@BHFOUSFRVFTU

    SFR  SFUVSOSFT
  7. 5IJO w )5513FRVFTUΛ࡞Δͱ͜Ζ·Ͱ͕ओͳ࢓ࣄ w )551௨৴͸-816TFS"HFOUʹؙ౤͛ w Ϩεϙϯεͷத਎ΛҰ੾ؔ஌͠ͳ͍ w )551YY YYΛΤϥʔѻ͍͠ͳ͍

    w ϦτϥΠ͠ͳ͍ w ϨεϙϯεϘσΟͷ9.-Λύʔε͠ͳ͍
  8. 5IJOͷޮ༻ w ґଘ͕গͳ͍ 9.-ϥΠϒϥϦʹґଘ͠ͳ͍ɻ  w தͰԿΛ΍ͬͯΔͷ͔͕༰қʹΘ͔Δ w Կͷ"1*Λୟ͍ͯΔͷ͔ w

    ͲΜͳϨεϙϯε͕ฦ͖͔ͬͯͨ w Τϥʔ࣌ͷڍಈΛࣗ༝ʹ૊ΊΔ w ϦτϥΠ w ϩΪϯά w EJFPSGBMTF
  9. -PXMFWFM ϝιουݺͼग़͕͠3&45"1*$BMMͱରରԠ SFTTDMJFOUQVU@CVDLFU CVDLFU  IUUQTEPDTBXTBNB[PODPN"NB[PO4MBUFTU"1*3&45#VDLFU165IUNM %PDVNFOUͷUJUMFͱ׬શʹҰக

  10. -PXMFBSOJOH$PTU w 43FTU"1*Λ௚઀ୟ͍ͨ͜ͱ͕͋Δਓʹͱͬͯ͸ֶ शίετ௿͍ w BXTDMJͷlBXTTBQJzΛ࢖͏ײ֮Ͱ࢖͑Δ

  11. ར༻࣮੷ IUUQTHJUIVCDPN%2/&0"NB[PO45IJOQVMMT RJT" w ϒϥδϧɾΞϝϦΧ͔Β13͕ͨ·ʹདྷΔ w ೔ຊͰ΋େن໛ར༻ࣄྫ͋Γ

  12. ։ൃͷಈػ w ౰࣌ɺ/FU"NB[PO4"NB[PO4͕ओྲྀͬΆ͔ͬ ͨ w 1FSMJTI*OUFSGBDF͕ࣗ෼ͷ༻్ʹ͸͍͋ͬͯͳ͔ͬͨ

  13. "NB[PO4*OUFSGBDFT NZCVDLFUTBEE@CVDLFU  \CVDLFUCVDLFU@OBNF^  PSEJFTFSSTFSSTUS CVDLFUBEE@LFZ LFZ WBMVF 

    PSEJFTFSSTFSSTUS
  14. "NB[PO4*OUFSGBDFT NZCVDLFUTBEE@CVDLFU  \CVDLFUCVDLFU@OBNF^  PSEJFTFSSTFSSTUS CVDL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ΈཱͯΔͱ͜·Ͱ͕ϝΠϯλεΫ ௨৴͸-81ʹؙ౤͛ ˠ6OJ5FTUͰ͸ϦΫΤετͷத਎͚ͩνΣοΫͯ͠௨৴͠ͳ͍

  32. ͜ΕͰ͋ΒΏΔϞϠϞϠ͕͖ͬ͢Γ όέοτΛ࡞੒ SFTQPOTFTDMJFOUQVU@CVDLFU CVDLFU  όέοτʹΦϒδΣΫτΛอଘ SFTQPOTFTDMJFOUQVU@PCKFDU CVDLFU LFZ 

    lIFMMPXPSME  ΦϒδΣΫτΛऔಘ SFTQPOTFTDMJFOUHFU@PCKFDU CVDLFU LFZ 
  33. ͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠ NN

  34. ͕࣌ؒ༨ͬͯͨΒ ͔͜͜ΒΑͨ࿩

  35. !%2/&0 Ͳ͖ΎͶ͓ BU.FSDBSJ *OD SPQQPOHJQN ͍ͪ1)1FS͕1FSMίϛϡχ ςΟ͔ΒֶΜͩ͜ͱ

  36. ೔ຊͷ1FSM.POHFST͸ ͱʹ͔͘ڧ͍ *TVDPOͰ༏উͨ͠Γ ࡞඼͕ੈքతʹ࢖ΘΕͨΓ

  37. 1FSMҎ֎ͷݴޠʹ΋ਫ਼௨ ͯ͠Δ $(P+BWB+43VCZFUD

  38. ଉΛు͘Α͏ʹ $1"/J[F

  39. $POGFSFODFۦಈ
 044։ൃ

  40. Πϯϑϥ 43& ͷਓ΋ $1"/"VUIPSͩͬͨΓ

  41. ΞϓϦέʔγϣϯΤϯδχΞͷਓ΋ ΠϯϑϥΛΈͨΓ

  42. খ͍͞πʔϧΛ૊Έ ߹Θͤͯ΋ͷΛ࡞Δ

  43. 5FTUจԽ 10%จԽ

  44. 10%ʹ఩ֶΛॻ͘

  45. ंྠͷ࠶ൃ໌ ΋ͲΜͲΜ΍Δ

  46. ༡ͼ৺ "DNF δϣʔΫϞδϡʔϧ ॲཧܥຊମʹจֶ࡞඼ͷஅย

  47. IUUQTHJUIVCDPN1FSMQFSMCMPCWSVOD ࢦྠ෺ޠͷҾ༻ SVOD

  48. ࢦྠ෺ޠͷҾ༻ EVNQD IUUQTHJUIVCDPN1FSMQFSMCMPCWEVNQD

  49. 1FSM.POHFST࠷ߴʂʂ̍