anchor.diff:  - ardo_app
   - ruby_1.9.3
   ~~~
  -
  -_Explain files block_
  -_glob for ardo_app_
   
   ## <a id="blobs"></a> Add Blobs ##
   
  
positive.code: * Comment your code to facilitate debugging.
  * Assume that stemcells contain no libraries or other software that your release can use.
  
  _The finished example release is here <download_link>_.
  
  This tutorial orders tasks in a way that the BOSH Team thinks is efficient,
  but that represents just one of many possible ways to accomplish the overall
  
negative.code: Write your packaging scripts now.
  To get started, study the examples.
  
  #### <a id="pkg-script-libyaml"></a> Example libyaml packaging script ####
  
  ~~~
  set -e -x
  
  tar xzf libyaml_0.1.4/yaml-0.1.4.tar.gz
  pushd yaml-0.1.4
    ./configure --prefix=${BOSH_INSTALL_TARGET}
  
    make
    make install
  popd
  ~~~
  
  #### <a id="pkg-script-ruby"></a> Example Ruby packaging script ####
  
  ~~~
  set -e -x
  
  tar xzf ruby_1.9.3/ruby-1.9.3-p484.tar.gz
  pushd ruby-1.9.3-p484
    ./configure \
      --prefix=${BOSH_INSTALL_TARGET} \
      --disable-install-doc \
      --with-opt-dir=/var/vcap/packages/libyaml_0.1.4
  
    make
    make install
  popd
  
  tar zxvf ruby_1.9.3/rubygems-1.8.24.tgz
  pushd rubygems-1.8.24
    ${BOSH_INSTALL_TARGET}/bin/ruby setup.rb
  popd
  
  ${BOSH_INSTALL_TARGET}/bin/gem install ruby_1.9.3/bundler-1.2.1.gem --no-ri --no-rdoc
  ~~~
  
  #### <a id="pkg-script-ardo"></a> Example ardo_app packaging script ####
  
  ~~~
  set -e -x
  
  cp -a ardo_app/* ${BOSH_INSTALL_TARGET}
  
  cd ${BOSH_INSTALL_TARGET}
  
  /var/vcap/packages/ruby_1.9.3/bin/bundle install \
    --local \
    --deployment \
    --without development test
  ~~~
  
  
  Like control scripts, writing packaging scripts is one of the heavier tasks
  entailed in creating a release.
  