Fixed blog_url not returning & rake setup_github_pages failing

When executing `rake setup_github_pages`, an error tells that `url` don't exist. The reference to that variable has been changed to a call to `blog_url`.

The function `blog_url` was not returning anything, failing to properly write the `_config.yml` file. It now does return what should have.
main
Daniel Escoz 11 years ago
parent b030e0c204
commit 498116b774

@ -358,7 +358,7 @@ task :setup_github_pages, :repo do |t, args|
f.write rakefile
end
end
puts "\n---\n## Now you can deploy to #{url} with `rake deploy` ##"
puts "\n---\n## Now you can deploy to #{blog_url(user, project)} with `rake deploy` ##"
end
def ok_failed(condition)
@ -390,6 +390,7 @@ def blog_url(user, project)
"http://#{user}.github.io"
end
url += "/#{project}" unless project == ''
url
end
desc "list tasks"

Loading…
Cancel
Save