Display help on config.rb when ftp method is not setup correctly. Update printf's.
This commit is contained in:
parent
4f41240306
commit
8c6bbae53a
1 changed files with 8 additions and 1 deletions
|
@ -92,6 +92,12 @@ EOF
|
|||
end
|
||||
end
|
||||
|
||||
if (options.method == :ftp)
|
||||
if (!options.host || !options.user || !options.password || !options.path)
|
||||
print_usage_and_die "The ftp deploy method requires host, user, password, and path to be set."
|
||||
end
|
||||
end
|
||||
|
||||
options
|
||||
end
|
||||
|
||||
|
@ -182,8 +188,8 @@ EOF
|
|||
if File.directory?(f)
|
||||
begin
|
||||
ftp.mkdir(f)
|
||||
puts "Created directory #{f}"
|
||||
rescue
|
||||
puts "Folder '#{f}' exists. skipping..."
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
@ -203,6 +209,7 @@ EOF
|
|||
end
|
||||
end
|
||||
end
|
||||
puts "Copied #{f}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue