fix gitignore
This commit is contained in:
+7
-7
@@ -1,8 +1,8 @@
|
|||||||
.bundle
|
/.bundle
|
||||||
coverage
|
/coverage
|
||||||
example/log/*
|
/example/log/*
|
||||||
man/*.html
|
/man/*.html
|
||||||
man/*.markdown
|
/man/*.markdown
|
||||||
pkg
|
/pkg
|
||||||
tags
|
/tags
|
||||||
|
|
||||||
|
|||||||
Vendored
+23
@@ -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>
|
||||||
|
|
||||||
Vendored
+7
@@ -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>
|
||||||
|
|
||||||
Vendored
+15
@@ -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
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
ln -sf /usr/local/foreman/bin/foreman /usr/bin/foreman
|
||||||
Reference in New Issue
Block a user