bin/jekyll-auth in jekyll-auth-0.5.2 vs bin/jekyll-auth in jekyll-auth-0.6.0
- old
+ new
@@ -4,10 +4,11 @@
require 'rubygems'
require 'commander/import'
require 'rake'
require 'jekyll-auth'
require 'git'
+require 'mkmf'
def changed?
git = Git.init
git.diff('HEAD', 'config.ru').entries.length != 0 || git.diff('HEAD', 'Rakefile').entries.length != 0
end
@@ -45,9 +46,15 @@
command :setup do |c|
c.syntax = "jekyll-auth setup"
c.description = "Configure Heroku for use with your Jekyll Auth site"
c.action do |args, options|
+
+ if find_executable("heroku").nil?
+ say "Looks like we're missing the Heroku client. Let's see if we can't install it..."
+ `wget -qO- https://toolbelt.heroku.com/install.sh | sh`
+ end
+
git = Git.init
git.add "config.ru"
git.add "Rakefile"
if changed?