lib/language_pack/ruby.rb
# vendors individual binary into the slug
# @param [String] name of the binary package from S3.
#   Example: https://s3.amazonaws.com/language-pack-ruby/node-0.4.7.tgz, where name is "node-0.4.7"
vendors individual binary into the slug
vendors individual binary into the slug
def install_binary(name)
    bin_dir = "bin"
    FileUtils.mkdir_p bin_dir
    Dir.chdir(bin_dir) do |dir|
      if name.match(/^node\-/)
        @node_installer.install
      else
        @fetchers[:buildpack].fetch_untar("#{name}.tgz")
      end
    end
  end
def install_binary ( name ) bin_dir = "bin" FileUtils . mkdir_p bin_dir Dir . chdir ( bin_dir ) do | dir | if name . match ( / ^node \- / ) @node_installer . install else @fetchers [ :buildpack ] . fetch_untar ( "#{name}.tgz" ) end end end
vendors individual binary into the slug
vendors individual binary into the slug
name
name of the binary package from S3.
name of the binary package from S3 .