| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>beforeRunningCommand</key> | |
| <string>nop</string> | |
| <key>bundleUUID</key> | |
| <string>C9BD1ADE-4FD9-4842-A641-DFB373B7D42C</string> | |
| <key>command</key> | |
| <string>#!/usr/bin/env ruby | |
| %w{ui web_preview escape exit_codes}.each { |lib| require "%s/lib/%s" % [ENV['TM_SUPPORT_PATH'], lib] } | |
| confirmed = TextMate::UI.request_confirmation( | |
| :title => "About to deploy Jekyll.", | |
| :prompt => "Please confirm.", | |
| :button1 => "Deploy") | |
| if confirmed | |
| Dir.chdir ENV["TM_PROJECT_DIRECTORY"] | |
| html_header("Deploying Jekyll…", ENV["TM_PROJECT_DIRECTORY"]) | |
| IO.popen("tasks/deploy") do |pipe| | |
| pipe.each_with_index do |line, index| | |
| puts %{<p id="line-#{index}" style="margin:0">#{htmlize line}</p>} | |
| puts %{<script>location.hash = "#line-#{index}";</script>} | |
| STDOUT.flush | |
| end | |
| end | |
| puts %{<p id="done" style="color:#0c0; font-weight:bold; margin-top:2em">Done!</p>} | |
| puts %{<script>location.hash = "#done";</script>} | |
| html_footer | |
| else | |
| TextMate.exit_discard | |
| end | |
| </string> | |
| <key>input</key> | |
| <string>none</string> | |
| <key>keyEquivalent</key> | |
| <string>^@j</string> | |
| <key>name</key> | |
| <string>Deploy</string> | |
| <key>output</key> | |
| <string>showAsHTML</string> | |
| <key>uuid</key> | |
| <string>E1AFD717-CE39-492E-8BEF-BB11505BACAC</string> | |
| </dict> | |
| </plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment