lib/ayadn/status.rb in ayadn-1.3.2 vs lib/ayadn/status.rb in ayadn-1.4.0
- old
+ new
@@ -8,10 +8,14 @@
"\nFile downloaded in #{Settings.config[:paths][:downloads]}/#{name}\n".color(:green)
end
def self.downloading
"Downloading from ADN...\n\n".inverse
end
+ def self.uploading files
+ files.length > 1 ? pl = "s" : pl = ""
+ "\nUploading file#{pl} to ADN...".color(:cyan)
+ end
def self.posting
"Posting to ADN...\n\n".inverse
end
def self.deleting_post(post_id)
"\nDeleting post #{post_id}\n".inverse
@@ -274,8 +278,14 @@
def self.too_long size, max_size
"\n\nCanceled: too long. #{max_size} max, #{size - max_size} characters to remove.\n\n\n".color(:red)
end
def self.no_text
"\n\nYou should provide some text.\n\n".color(:red)
+ end
+ def self.bad_path
+ "\n\nCouldn't upload this file (path seems wrong).\n\n".color(:red)
+ end
+ def self.no_curl
+ "\n\nAyadn needs 'curl' to upload files. Please install 'curl' (or check that it's properly declared in your $PATH).\n\n".color(:red)
end
end
end