Sha256: 500d645338a22d5b6ba45bee81afd885bdde456cb21d4ed949d1964ee0f35455

Contents?: true

Size: 703 Bytes

Versions: 5

Compression:

Stored size: 703 Bytes

Contents

#!/bin/bash

#/ NAME
#/     build -- upload the latest (timestamp) rubygem to rubygems.org
#/
#/ SYNOPSIS
#/     build -n gem_name

# figure out the project root under which bin, lib live
shome="$(cd -P -- "$(dirname -- "$0")/.." && pwd -P)"

# load a meat library
source "$shome/bin/_prime" "$@"

# entry point
function main {
  pth_gemspec="$shome/$FLAGS_name.gemspec"
  if [[ ! -e "$pth_gemspec" ]]; then
    logger_fatal "could not find gemspec $pth_gemspec"
    exit 1
  fi

  gem build "$pth_gemspec"
}

# parse the command-line
DEFINE_string 'name' "$(basename "$shome")" 'name of gem' 'n'
parse_command_line "$@" || exit $?
eval set -- "${FLAGS_ARGV}"

# pass arguments to entry point
main "$@"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
HeSYINUvSBZfxqA-capistrano-2.5.28 bin/build
HeSYINUvSBZfxqA-capistrano-2.5.27 bin/build
HeSYINUvSBZfxqA-capistrano-2.5.26 bin/build
HeSYINUvSBZfxqA-capistrano-2.5.25 bin/build
HeSYINUvSBZfxqA-capistrano-2.5.24 bin/build