Skip to content

Commit

Permalink
Added a launchd plist creator, courtesy of LaunchDoctor
Browse files Browse the repository at this point in the history
  • Loading branch information
ELLIOTTCABLE committed Dec 24, 2008
1 parent 891f36e commit 15bb819
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Jello
=====

Because everybody likes "paste & jello" sandwiches, right? I know I did when I
was a kid.

Expand Down Expand Up @@ -61,13 +60,22 @@ them:
# Now foo.rb, bar.rb, one.rb, and two.rb would be executed on incoming
# pastes

Finally, you can use pasteboards other than the general one (see `man pbcopy`
for more information about this):
You can also use pasteboards other than the general one (see `man pbcopy` for
more information about this):

require 'jello'

Jello::Mould.new do |paste|
paste.gsub! /abc/, 'def'
end

Jello.start!
Jello.start!

Finally, you can create a Jello [property list][plist] for [launchd][] that
will keep jello running all the time, even after you restart. Just run
`rake launchd` from the Jello distribution directory. (This requires that you
install the [LaunchDoctor][] gem first!)

[launchd]: <http://en.wikipedia.org/wiki/Launchd> "launchd on Wikipedia"
[plist]: <http://en.wikipedia.org/wiki/Property_list> "Property list on Wikipedia"
[LaunchDoctor]: <http://github.com/elliottcable/launchdr> "elliottcable's launchdr on GitHub"
9 changes: 9 additions & 0 deletions Rakefile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@
task :package
end

begin
require '/Users/elliottcable/Code/launchdr/lib/launchdr/task'

LaunchDr::Task.new :launchd, :bin => 'jello', :arguments => ['shortener', 'grabup']
rescue LoadError
desc 'You need the `elliottcable-launchdr` gem to generate a launchd property list'
task :launchd
end

# =======================
# = Spec/Coverage tasks =
# =======================
Expand Down

0 comments on commit 15bb819

Please sign in to comment.