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
|
||||||
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
|
options
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -182,8 +188,8 @@ EOF
|
||||||
if File.directory?(f)
|
if File.directory?(f)
|
||||||
begin
|
begin
|
||||||
ftp.mkdir(f)
|
ftp.mkdir(f)
|
||||||
|
puts "Created directory #{f}"
|
||||||
rescue
|
rescue
|
||||||
puts "Folder '#{f}' exists. skipping..."
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
@ -203,6 +209,7 @@ EOF
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
puts "Copied #{f}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue