From 23124afc7efdccacdc9d9c4aa35dd91da407ae4b Mon Sep 17 00:00:00 2001 From: David Dollar Date: Mon, 12 Sep 2011 12:55:37 -0400 Subject: [PATCH] fix gitignore --- .gitignore | 14 +++++++------- dist/resources/pkg/Distribution.erb | 23 +++++++++++++++++++++++ dist/resources/pkg/PackageInfo.erb | 7 +++++++ dist/resources/pkg/foreman | 15 +++++++++++++++ dist/resources/pkg/postinstall | 2 ++ 5 files changed, 54 insertions(+), 7 deletions(-) create mode 100644 dist/resources/pkg/Distribution.erb create mode 100644 dist/resources/pkg/PackageInfo.erb create mode 100644 dist/resources/pkg/foreman create mode 100644 dist/resources/pkg/postinstall diff --git a/.gitignore b/.gitignore index 05800dd..138aab1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,8 @@ -.bundle -coverage -example/log/* -man/*.html -man/*.markdown -pkg -tags +/.bundle +/coverage +/example/log/* +/man/*.html +/man/*.markdown +/pkg +/tags diff --git a/dist/resources/pkg/Distribution.erb b/dist/resources/pkg/Distribution.erb new file mode 100644 index 0000000..a584089 --- /dev/null +++ b/dist/resources/pkg/Distribution.erb @@ -0,0 +1,23 @@ + + + Foreman + + + + + + + + + + + + + + #foreman-<%= version %>.pkg + + diff --git a/dist/resources/pkg/PackageInfo.erb b/dist/resources/pkg/PackageInfo.erb new file mode 100644 index 0000000..7392615 --- /dev/null +++ b/dist/resources/pkg/PackageInfo.erb @@ -0,0 +1,7 @@ + + + + + + + diff --git a/dist/resources/pkg/foreman b/dist/resources/pkg/foreman new file mode 100644 index 0000000..2a559b5 --- /dev/null +++ b/dist/resources/pkg/foreman @@ -0,0 +1,15 @@ +#!/usr/bin/env ruby + +require "pathname" +bin_file = Pathname.new(__FILE__).realpath + +gem_dir = File.expand_path("../vendor/gems", bin_file) + Dir["#{gem_dir}/**/lib"].each do |libdir| + $:.unshift libdir +end + +$:.unshift File.expand_path("../../lib", bin_file) + +require "foreman/cli" + +Foreman::CLI.start diff --git a/dist/resources/pkg/postinstall b/dist/resources/pkg/postinstall new file mode 100644 index 0000000..cada253 --- /dev/null +++ b/dist/resources/pkg/postinstall @@ -0,0 +1,2 @@ +#!/bin/sh +ln -sf /usr/local/foreman/bin/foreman /usr/bin/foreman