bin/jekyll-auth in jekyll-auth-2.1.1 vs bin/jekyll-auth in jekyll-auth-2.1.2
- old
+ new
@@ -16,13 +16,11 @@
c.syntax "new"
c.description "Initialize an existing Jekyll site as a Jekyll Auth site"
c.action do |_args, _options|
JekyllAuth::Commands.copy_templates
- if JekyllAuth::Commands.changed?
- puts "Looks like we've made some changes, you may want to do a git commit and git push sometime soon".yellow
- end
+ puts "Looks like we've made some changes, you may want to do a git commit and git push sometime soon".yellow if JekyllAuth::Commands.changed?
puts "Setup complete. Run `jekyll-auth` to view the authenticated site."
end
end
@@ -99,13 +97,13 @@
end
p.command(:setup) do |c|
c.syntax "setup"
c.description "Configure Heroku for use with your Jekyll Auth site"
- c.option "client_id", "--client_id", "Your oauth app client id"
- c.option "client_secret", "--client_secret", "Your oauth app client secret"
- c.option "team_id", "--team_id", "The team to authenticate against"
- c.option "org_name", "--org_name", "An organization to authenticate against"
+ c.option "client_id", "--client_id <ID>", "Your oauth app client id"
+ c.option "client_secret", "--client_secret <SECRET>", "Your oauth app client secret"
+ c.option "team_id", "--team_id <ID>", "The team to authenticate against"
+ c.option "org_name", "--org_name <NAME>", "An organization to authenticate against"
c.action do |_args, options|
if find_executable("heroku").nil?
puts "Looks like we're missing the Heroku client. Let's see if we can't install it..."
JekyllAuth::Commands.execute_command "wget", "-qO-", "https://toolbelt.heroku.com/install.sh", "|", "sh"
end