Skip to content
Browse files

fix gitignore

  • Loading branch information...
1 parent c948858 commit 23124afc7efdccacdc9d9c4aa35dd91da407ae4b @ddollar ddollar committed Sep 12, 2011
View
14 .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
View
23 dist/resources/pkg/Distribution.erb
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<installer-script minSpecVersion="1.000000" authoringTool="org.ruby-lang.rake" authoringToolVersion="0.8.7">
+ <title>Foreman</title>
+ <options customize="never" allow-external-scripts="no"/>
+ <domains enable_localSystem="true"/>
+ <script><![CDATA[
+ function needs_git() {
+ return (system.compareVersion(system.version.ProductVersion, "10.7.0") < 0);
+ }
+ ]]></script>
+ <choices-outline>
+ <line choice="git"/>
+ <line choice="foreman-<%= version %>"/>
+ </choices-outline>
+ <choice id="git" title="git" start_selected="false" start_enabled="false" selected="needs_git()" enabled="needs_git()">
+ <pkg-ref id="git.pkg" />
+ </choice>
+ <choice id="foreman-<%= version %>" title="foreman">
+ <pkg-ref id="io.foreman.installer"/>
+ </choice>
+ <pkg-ref id="io.foreman.installer" installKBytes="<%= kbytes %>" version="<%= version %>" auth="Root">#foreman-<%= version %>.pkg</pkg-ref>
+</installer-script>
+
View
7 dist/resources/pkg/PackageInfo.erb
@@ -0,0 +1,7 @@
+<pkg-info format-version="2" identifier="io.foreman.installer" version="<%= version %>" install-location="/usr/local/foreman" auth="root">
+ <payload installKBytes="<%= kbytes %>" numberOfFiles="<%= num_files %>"/>
+ <scripts>
+ <postinstall file="./postinstall"/>
+ </scripts>
+</pkg-info>
+
View
15 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
View
2 dist/resources/pkg/postinstall
@@ -0,0 +1,2 @@
+#!/bin/sh
+ln -sf /usr/local/foreman/bin/foreman /usr/bin/foreman

0 comments on commit 23124af

Please sign in to comment.
Something went wrong with that request. Please try again.