ddollar/foreman — pull request #366 by wfarr (2013-05-26 14:54:31+00:00)
Title: Install tgz/foreman to bin/foreman in tgz package

Currently the tgz packages for foreman set up the `foreman` script outside the bin dir:

```
~/tmp (0) » wget http://assets.foreman.io/foreman/foreman.tgz
--2013-05-26 07:44:13-- http://assets.foreman.io/foreman/foreman.tgz
Resolving assets.foreman.io... 207.171.185.200
Connecting to assets.foreman.io|207.171.185.200|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 78489 (77K) [application/x-gtar]
Saving to: ‘foreman.tgz’

100%[=============================================================================================>] 78,489 320KB/s in 0.2s

2013-05-26 07:44:14 (320 KB/s) - ‘foreman.tgz’ saved [78489/78489]
~/tmp (0) » tar -tvzf foreman.tgz | grep foreman$
-rwxr-xr-x 0 david staff 299 Mar 16 2012 foreman/foreman
```

This change puts the `foreman` script into the bin dir when generating tgz packages:

```
~/src/foreman[tgz-install-foreman-to-bin] (0) » rake tgz:build
vendoring: dotenv-0.7.0
vendoring: thor-0.16.0
rm -f bin/foreman
tar czvf /Users/wfarr/src/foreman/pkg/foreman-0.63.0.tgz foreman
a foreman
a foreman/bin
a foreman/data
a foreman/lib
a foreman/vendor
a foreman/vendor/gems
a foreman/vendor/gems/dotenv-0.7.0
a foreman/vendor/gems/thor-0.16.0
a foreman/vendor/gems/thor-0.16.0/.document
a foreman/vendor/gems/thor-0.16.0/.gitignore
a foreman/vendor/gems/thor-0.16.0/.rspec
a foreman/vendor/gems/thor-0.16.0/.travis.yml
a foreman/vendor/gems/thor-0.16.0/bin
a foreman/vendor/gems/thor-0.16.0/CHANGELOG.rdoc
a foreman/vendor/gems/thor-0.16.0/Gemfile
a foreman/vendor/gems/thor-0.16.0/lib
a foreman/vendor/gems/thor-0.16.0/LICENSE.md
a foreman/vendor/gems/thor-0.16.0/README.md
a foreman/vendor/gems/thor-0.16.0/spec
a foreman/vendor/gems/thor-0.16.0/thor.gemspec
a foreman/vendor/gems/thor-0.16.0/Thorfile
a foreman/vendor/gems/thor-0.16.0/spec/actions
a foreman/vendor/gems/thor-0.16.0/spec/actions_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/base_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/core_ext
a foreman/vendor/gems/thor-0.16.0/spec/exit_condition_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/fixtures
a foreman/vendor/gems/thor-0.16.0/spec/group_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/invocation_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/parser
a foreman/vendor/gems/thor-0.16.0/spec/rake_compat_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/register_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/runner_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/shell
a foreman/vendor/gems/thor-0.16.0/spec/shell_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/spec_helper.rb
a foreman/vendor/gems/thor-0.16.0/spec/task_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/thor_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/util_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/shell/basic_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/shell/color_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/shell/html_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/parser/argument_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/parser/arguments_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/parser/option_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/parser/options_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/application.rb
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/app{1}
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/bundle
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/doc
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/enum.thor
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/group.thor
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/invoke.thor
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/path with spaces
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/script.thor
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/task.thor
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/doc/%file_name%.rb.tt
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/doc/block_helper.rb
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/doc/COMMENTER
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/doc/components
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/doc/config.rb
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/doc/config.yaml.tt
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/doc/README
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/doc/components/.empty_directory
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/bundle/execute.rb
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/bundle/main.thor
a foreman/vendor/gems/thor-0.16.0/spec/fixtures/app{1}/README
a foreman/vendor/gems/thor-0.16.0/spec/core_ext/hash_with_indifferent_access_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/core_ext/ordered_hash_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/actions/create_file_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/actions/create_link_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/actions/directory_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/actions/empty_directory_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/actions/file_manipulation_spec.rb
a foreman/vendor/gems/thor-0.16.0/spec/actions/inject_into_file_spec.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor
a foreman/vendor/gems/thor-0.16.0/lib/thor.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/actions
a foreman/vendor/gems/thor-0.16.0/lib/thor/actions.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/base.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/core_ext
a foreman/vendor/gems/thor-0.16.0/lib/thor/error.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/group.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/invocation.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/parser
a foreman/vendor/gems/thor-0.16.0/lib/thor/parser.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/rake_compat.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/runner.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/shell
a foreman/vendor/gems/thor-0.16.0/lib/thor/shell.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/task.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/util.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/version.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/shell/basic.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/shell/color.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/shell/html.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/parser/argument.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/parser/arguments.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/parser/option.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/parser/options.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/core_ext/dir_escape.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/core_ext/file_binary_read.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/core_ext/hash_with_indifferent_access.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/core_ext/ordered_hash.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/actions/create_file.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/actions/create_link.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/actions/directory.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/actions/empty_directory.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/actions/file_manipulation.rb
a foreman/vendor/gems/thor-0.16.0/lib/thor/actions/inject_into_file.rb
a foreman/vendor/gems/thor-0.16.0/bin/rake2thor
a foreman/vendor/gems/thor-0.16.0/bin/thor
a foreman/vendor/gems/dotenv-0.7.0/.env
a foreman/vendor/gems/dotenv-0.7.0/.gitignore
a foreman/vendor/gems/dotenv-0.7.0/.travis.yml
a foreman/vendor/gems/dotenv-0.7.0/Changelog.md
a foreman/vendor/gems/dotenv-0.7.0/dotenv-rails.gemspec
a foreman/vendor/gems/dotenv-0.7.0/dotenv.gemspec
a foreman/vendor/gems/dotenv-0.7.0/Gemfile
a foreman/vendor/gems/dotenv-0.7.0/Guardfile
a foreman/vendor/gems/dotenv-0.7.0/lib
a foreman/vendor/gems/dotenv-0.7.0/LICENSE
a foreman/vendor/gems/dotenv-0.7.0/Rakefile
a foreman/vendor/gems/dotenv-0.7.0/README.md
a foreman/vendor/gems/dotenv-0.7.0/spec
a foreman/vendor/gems/dotenv-0.7.0/spec/dotenv
a foreman/vendor/gems/dotenv-0.7.0/spec/dotenv_spec.rb
a foreman/vendor/gems/dotenv-0.7.0/spec/fixtures
a foreman/vendor/gems/dotenv-0.7.0/spec/spec_helper.rb
a foreman/vendor/gems/dotenv-0.7.0/spec/fixtures/exported.env
a foreman/vendor/gems/dotenv-0.7.0/spec/fixtures/plain.env
a foreman/vendor/gems/dotenv-0.7.0/spec/fixtures/quoted.env
a foreman/vendor/gems/dotenv-0.7.0/spec/fixtures/yaml.env
a foreman/vendor/gems/dotenv-0.7.0/spec/dotenv/environment_spec.rb
a foreman/vendor/gems/dotenv-0.7.0/lib/dotenv
a foreman/vendor/gems/dotenv-0.7.0/lib/dotenv-rails.rb
a foreman/vendor/gems/dotenv-0.7.0/lib/dotenv.rb
a foreman/vendor/gems/dotenv-0.7.0/lib/dotenv/environment.rb
a foreman/vendor/gems/dotenv-0.7.0/lib/dotenv/railtie.rb
a foreman/vendor/gems/dotenv-0.7.0/lib/dotenv/tasks.rb
a foreman/vendor/gems/dotenv-0.7.0/lib/dotenv/version.rb
a foreman/lib/foreman
a foreman/lib/foreman.rb
a foreman/lib/foreman/cli.rb
a foreman/lib/foreman/distribution.rb
a foreman/lib/foreman/engine
a foreman/lib/foreman/engine.rb
a foreman/lib/foreman/export
a foreman/lib/foreman/export.rb
a foreman/lib/foreman/helpers.rb
a foreman/lib/foreman/process.rb
a foreman/lib/foreman/procfile.rb
a foreman/lib/foreman/version.rb
a foreman/lib/foreman/export/base.rb
a foreman/lib/foreman/export/bluepill.rb
a foreman/lib/foreman/export/daemon.rb
a foreman/lib/foreman/export/inittab.rb
a foreman/lib/foreman/export/launchd.rb
a foreman/lib/foreman/export/runit.rb
a foreman/lib/foreman/export/supervisord.rb
a foreman/lib/foreman/export/systemd.rb
a foreman/lib/foreman/export/upstart.rb
a foreman/lib/foreman/engine/cli.rb
a foreman/data/example
a foreman/data/export
a foreman/data/export/bluepill
a foreman/data/export/daemon
a foreman/data/export/launchd
a foreman/data/export/runit
a foreman/data/export/supervisord
a foreman/data/export/systemd
a foreman/data/export/upstart
a foreman/data/export/upstart/master.conf.erb
a foreman/data/export/upstart/process.conf.erb
a foreman/data/export/upstart/process_master.conf.erb
a foreman/data/export/systemd/master.target.erb
a foreman/data/export/systemd/process.service.erb
a foreman/data/export/systemd/process_master.target.erb
a foreman/data/export/supervisord/app.conf.erb
a foreman/data/export/runit/log
a foreman/data/export/runit/run.erb
a foreman/data/export/runit/log/run.erb
a foreman/data/export/launchd/launchd.plist.erb
a foreman/data/export/daemon/master.conf.erb
a foreman/data/export/daemon/process.conf.erb
a foreman/data/export/daemon/process_master.conf.erb
a foreman/data/export/bluepill/master.pill.erb
a foreman/data/example/error
a foreman/data/example/log
a foreman/data/example/Procfile
a foreman/data/example/Procfile.without_colon
a foreman/data/example/spawnee
a foreman/data/example/spawner
a foreman/data/example/ticker
a foreman/data/example/utf8
a foreman/data/example/log/neverdie.log
a foreman/bin/foreman
a foreman/bin/foreman-runner
a foreman/bin/taskman

~/src/foreman[tgz-install-foreman-to-bin] (0) » tar -tzvf pkg/foreman-0.63.0.tgz | grep foreman$
-rwxr-xr-x 0 wfarr staff 299 May 26 07:51 foreman/bin/foreman
```