periods, periods, periods

This commit is contained in:
Tom Vaughan 2012-09-04 11:04:09 -07:00
parent 749ea963d4
commit 72fcf8c717

View file

@ -44,7 +44,7 @@ activate :deploy do |deploy|
deploy.user = "tvaughan" deploy.user = "tvaughan"
deploy.host = "www.example.com" deploy.host = "www.example.com"
deploy.path = "/srv/www/site" deploy.path = "/srv/www/site"
# clean is optional (default is false). # clean is optional (default is false)
deploy.clean = true deploy.clean = true
end end
@ -61,16 +61,16 @@ EOF
begin begin
options = ::Middleman::Application.server.inst.options options = ::Middleman::Application.server.inst.options
rescue rescue
print_usage_and_die "You need to activate the deploy extension in config.rb" print_usage_and_die "You need to activate the deploy extension in config.rb."
end end
if (!options.method) if (!options.method)
print_usage_and_die "The deploy extension requires you to set a method" print_usage_and_die "The deploy extension requires you to set a method."
end end
if (options.method == :rsync) if (options.method == :rsync)
if (!options.host || !options.user || !options.path) if (!options.host || !options.user || !options.path)
print_usage_and_die "The rsync deploy method requires host, user, and path to be set" print_usage_and_die "The rsync deploy method requires host, user, and path to be set."
end end
end end