Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

making script/oink file and creating plugin hooks to install it

  • Loading branch information...
commit 5c412eb261ac55ad5fa800e82f74305a43e0043c 1 parent 04bfbb0
@noahd1 authored
Showing with 13 additions and 2 deletions.
  1. +3 −0  application_files/script/oink
  2. +6 −1 install.rb
  3. +4 −1 uninstall.rb
View
3  application_files/script/oink
@@ -0,0 +1,3 @@
+#!/usr/bin/env ruby
+
+load File.expand_path(File.dirname(__FILE__) + "/../vendor/plugins/oink/bin/oink")
View
7 install.rb
@@ -1 +1,6 @@
-# Install Hook
+#!/usr/bin/env ruby
+
+template_executable_file = File.join("application_files", "script", "oink")
+executable_file = File.expand_path("#{File.dirname(__FILE__)}/../../../script/oink")
+
+File.copy template_executable_file, executable_file
View
5 uninstall.rb
@@ -1 +1,4 @@
-# Uninstall hook code here
+#!/usr/bin/env ruby
+
+executable_file = File.expand_path("#{File.dirname(__FILE__)}/../../../script/oink")
+File.delete(executable_file)
Please sign in to comment.
Something went wrong with that request. Please try again.