-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
34 lines (30 loc) · 1.07 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require 'rubygems'
namespace :sitemap do
desc "Ping Google with the latest sitemap"
task :ping do
require 'cgi'
sitemap_url = CGI.escape("http://ackandnak.com/sitemap.xml")
%x[curl -s -S "http://www.google.com/webmasters/tools/ping?sitemap=#{sitemap_url}"]
puts "Pinged google"
%x[curl -s -S "http://feedburner.google.com/fb/a/pingSubmit?bloglink=http://ackandnak.com/"]
puts "Pinged feedburner"
# %x[curl -s -S "http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap=#{sitemap_url}"]
# puts "Pinged yahoo"
# %x[curl -s -S "http://www.bing.com/webmaster/ping.aspx?siteMap=#{sitemap_url}"]
# puts "Pinged bing"
end
end
#
# Deploying the codebase
desc "Deploy latest code to a specific environment. eg: rake deploy[environment-name]"
task :deploy, :env do |t, args|
require "./_deploy/#{args[:env] || 'production'}"
end
#begin
# require 'vlad' # But we really mean gabrielg-vlad
# require 'vlad/core'
# require 'vlad/git'
# require '_deploy/base.rb'
#rescue LoadError => e
# puts "Unable to load Vlad the Deployer - #{e.message}."
#end