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

drush make drupalbristol

drush make drupalbristol

Oliver Davies

July 02, 2014
Tweet

More Decks by Oliver Davies

Other Decks in Technology

Transcript

  1. $ DRUSH MAKE
    DRUPALBRISTOL
    JULY 2014

    View Slide

  2. WHO?
    Oliver Davies
    Drupal.org Developer for the Drupal Association
    https://drupal.org/u/opdavies
    @opdavies

    View Slide

  3. WHAT IS DRUSH?
    "A command line shell and scripting interface for
    Drupal."
    http://drush.ws

    View Slide

  4. WHAT IS DRUSH MAKE?
    "Drush make is an extension to drush that can
    create a ready-to-use drupal site, pulling sources
    from various locations. It does this by parsing a
    flat text file (similar to a drupal `.info` file) and
    downloading the sources it describes. In
    practical terms, this means that it is possible to
    distribute a complicated Drupal distribution as a
    single text file."
    http://cgit.drupalcode.org/drush_make/plain/README.txt?id=refs/heads/6.x-2.x

    View Slide

  5. INSTALLATION (< 5.X)
    # D
    o
    w
    n
    l
    o
    a
    d d
    r
    u
    s
    h
    _
    m
    a
    k
    e f
    r
    o
    m D
    .
    O
    .
    $ d
    r
    u
    s
    h d
    l d
    r
    u
    s
    h
    _
    m
    a
    k
    e
    # M
    o
    v
    e i
    t i
    n
    t
    o a .
    d
    r
    u
    s
    h d
    i
    r
    e
    c
    t
    o
    r
    y w
    i
    t
    h
    i
    n y
    o
    u
    r H
    O
    M
    E
    .
    $ m
    v d
    r
    u
    s
    h
    _
    m
    a
    k
    e ~
    /
    .
    d
    r
    u
    s
    h
    # C
    l
    e
    a
    r t
    h
    e D
    r
    u
    s
    h c
    a
    c
    h
    e
    .
    $ d
    r
    u
    s
    h c
    c d
    r
    u
    s
    h

    View Slide

  6. FOO.MAKE
    c
    o
    r
    e = 7
    .
    x
    a
    p
    i = 2
    p
    r
    o
    j
    e
    c
    t
    s
    [
    ] = "
    d
    r
    u
    p
    a
    l
    "

    View Slide

  7. BAR.MAKE
    c
    o
    r
    e = 7
    .
    x
    a
    p
    i = 2
    p
    r
    o
    j
    e
    c
    t
    s
    [
    d
    r
    u
    p
    a
    l
    ]
    [
    v
    e
    r
    s
    i
    o
    n
    ] = "
    7
    .
    2
    8
    "

    View Slide

  8. MODULES (CONTRIB)
    p
    r
    o
    j
    e
    c
    t
    s
    [
    a
    d
    m
    i
    n
    _
    m
    e
    n
    u
    ]
    [
    v
    e
    r
    s
    i
    o
    n
    ] = "
    3
    .
    0
    -
    r
    c
    4
    "
    # T
    o p
    l
    a
    c
    e t
    h
    e m
    o
    d
    u
    l
    e w
    i
    t
    h
    i
    n a s
    u
    b
    -
    d
    i
    r
    e
    c
    t
    o
    r
    y
    .
    p
    r
    o
    j
    e
    c
    t
    s
    [
    a
    d
    m
    i
    n
    _
    m
    e
    n
    u
    ]
    [
    s
    u
    b
    d
    i
    r
    ] = "
    c
    o
    n
    t
    r
    i
    b
    "

    View Slide

  9. MODULES (DEV RELEASES)
    p
    r
    o
    j
    e
    c
    t
    s
    [
    d
    e
    v
    e
    l
    _
    t
    h
    e
    m
    e
    r
    ]
    [
    d
    o
    w
    n
    l
    o
    a
    d
    ]
    [
    t
    y
    p
    e
    ] = "
    g
    i
    t
    "
    p
    r
    o
    j
    e
    c
    t
    s
    [
    d
    e
    v
    e
    l
    _
    t
    h
    e
    m
    e
    r
    ]
    [
    d
    o
    w
    n
    l
    o
    a
    d
    ]
    [
    r
    e
    v
    i
    s
    i
    o
    n
    ] = "
    b
    e
    c
    0
    8
    5
    9
    "

    View Slide

  10. MODULES (CUSTOM)
    p
    r
    o
    j
    e
    c
    t
    s
    [
    n
    o
    m
    e
    n
    s
    a
    _
    a
    m
    p
    _
    b
    a
    s
    e
    ]
    [
    t
    y
    p
    e
    ] = "
    m
    o
    d
    u
    l
    e
    "
    p
    r
    o
    j
    e
    c
    t
    s
    [
    n
    o
    m
    e
    n
    s
    a
    _
    a
    m
    p
    _
    b
    a
    s
    e
    ]
    [
    d
    o
    w
    n
    l
    o
    a
    d
    ]
    [
    t
    y
    p
    e
    ] = "
    g
    i
    t
    "
    p
    r
    o
    j
    e
    c
    t
    s
    [
    n
    o
    m
    e
    n
    s
    a
    _
    a
    m
    p
    _
    b
    a
    s
    e
    ]
    [
    d
    o
    w
    n
    l
    o
    a
    d
    ]
    [
    u
    r
    l
    ] = "
    h
    t
    t
    p
    s
    :
    /
    /
    g
    i
    t
    h
    u
    b
    .
    c
    o
    m
    /
    o
    p
    d
    a
    v
    i
    e
    s
    /
    n
    o
    m
    e
    n
    s
    a
    -
    a
    m
    p
    -
    d
    r
    u
    p
    p
    r
    o
    j
    e
    c
    t
    s
    [
    n
    o
    m
    e
    n
    s
    a
    _
    a
    m
    p
    _
    b
    a
    s
    e
    ]
    [
    d
    o
    w
    n
    l
    o
    a
    d
    ]
    [
    b
    r
    a
    n
    c
    h
    ] = "
    7
    .
    x
    "

    View Slide

  11. THEMES
    p
    r
    o
    j
    e
    c
    t
    s
    [
    z
    e
    n
    ]
    [
    v
    e
    r
    s
    i
    o
    n
    ] = "
    5
    .
    4
    "
    # T
    h
    i
    s i
    s o
    p
    t
    i
    o
    n
    a
    l
    , i
    t s
    e
    e
    m
    s t
    o w
    o
    r
    k w
    i
    t
    h
    o
    u
    t i
    t
    .
    p
    r
    o
    j
    e
    c
    t
    s
    [
    z
    e
    n
    ]
    [
    t
    y
    p
    e
    ] = "
    t
    h
    e
    m
    e
    "

    View Slide

  12. PATCH ALL THE THINGS!
    p
    r
    o
    j
    e
    c
    t
    s
    [
    o
    u
    t
    o
    f
    d
    a
    t
    e
    ]
    [
    v
    e
    r
    s
    i
    o
    n
    ] = "
    1
    .
    0
    "
    p
    r
    o
    j
    e
    c
    t
    s
    [
    o
    u
    t
    o
    f
    d
    a
    t
    e
    ]
    [
    p
    a
    t
    c
    h
    ]
    [
    ] = "
    h
    t
    t
    p
    s
    :
    /
    /
    w
    w
    w
    .
    d
    r
    u
    p
    a
    l
    .
    o
    r
    g
    /
    f
    i
    l
    e
    s
    /
    i
    s
    s
    u
    e
    s
    /
    c
    a
    n
    n
    o
    t
    _
    u
    n
    i
    n
    s
    t
    a
    l
    l
    -
    2
    0
    6
    6
    p
    r
    o
    j
    e
    c
    t
    s
    [
    o
    u
    t
    o
    f
    d
    a
    t
    e
    ]
    [
    p
    a
    t
    c
    h
    ]
    [
    ] = "
    h
    t
    t
    p
    s
    :
    /
    /
    w
    w
    w
    .
    d
    r
    u
    p
    a
    l
    .
    o
    r
    g
    /
    f
    i
    l
    e
    s
    /
    i
    s
    s
    u
    e
    s
    /
    u
    s
    e
    _
    t
    h
    e
    _
    c
    h
    a
    n
    g
    e
    d
    _
    d
    a
    t
    e
    -

    View Slide

  13. LIBRARIES
    l
    i
    b
    r
    a
    r
    i
    e
    s
    [
    c
    k
    e
    d
    i
    t
    o
    r
    ]
    [
    d
    o
    w
    n
    l
    o
    a
    d
    ]
    [
    t
    y
    p
    e
    ] = "
    g
    e
    t
    "
    l
    i
    b
    r
    a
    r
    i
    e
    s
    [
    c
    k
    e
    d
    i
    t
    o
    r
    ]
    [
    d
    o
    w
    n
    l
    o
    a
    d
    ]
    [
    u
    r
    l
    ] = "
    h
    t
    t
    p
    :
    /
    /
    d
    o
    w
    n
    l
    o
    a
    d
    .
    c
    k
    s
    o
    u
    r
    c
    e
    .
    c
    o
    m
    /
    C
    K
    E
    d
    i
    t
    o
    r
    /
    C
    K
    E
    d
    i
    t
    o
    r
    /
    C
    K
    E
    d

    View Slide

  14. INCLUDES
    i
    n
    c
    l
    u
    d
    e
    s
    [
    c
    o
    m
    m
    o
    n
    ] = h
    t
    t
    p
    s
    :
    /
    /
    b
    i
    t
    b
    u
    c
    k
    e
    t
    .
    o
    r
    g
    /
    o
    p
    d
    a
    v
    i
    e
    s
    /
    d
    r
    u
    p
    a
    l
    -
    s
    i
    t
    e
    s
    -
    c
    o
    m
    m
    o
    n
    /
    r
    a
    w
    /
    7
    .
    x
    /
    c
    o
    m
    m
    o
    n
    .
    m
    a
    k
    e

    View Slide

  15. MAKING
    $ d
    r
    u
    s
    h m
    a
    k
    e f
    o
    o
    .
    m
    a
    k
    e {
    d
    i
    r
    e
    c
    t
    o
    r
    y
    }

    View Slide

  16. BUT...
    That's great, but I've already got a site built.
    $ d
    r
    u
    s
    h m
    a
    k
    e
    -
    g
    e
    n
    e
    r
    a
    t
    e f
    o
    o
    .
    m
    a
    k
    e

    View Slide

  17. RESOURCES
    http://drush.ws/#make
    http://drush.ws/#make-generate
    https://drupal.org/node/1432374
    https://github.com/opdavies/nomensa-amp-drupal-demo

    View Slide

  18. THANKS... ANY QUESTIONS?

    View Slide