lib/ayadn/set.rb in ayadn-1.0.9 vs lib/ayadn/set.rb in ayadn-1.0.10

- old
+ new

@@ -1,10 +1,10 @@ module Ayadn class Set < Thor - desc "set scroll ITEM VALUE", "Set the waiting time (in seconds, min 0.7) between two requests when scrolling" + desc "scroll ITEM VALUE", "Set the waiting time (in seconds, min 0.7) between two requests when scrolling" def scroll(*args) scroll_config = SetScroll.new if args[0] param = scroll_config.validate(args[1]) scroll_config.send(args[0], param) @@ -13,11 +13,11 @@ end scroll_config.log(args) scroll_config.save end - desc "set timeline ITEM TRUE/FALSE", "Set ITEM to be activated or not" + desc "timeline ITEM TRUE/FALSE", "Set ITEM to be activated or not" long_desc Descriptions.set_timeline def timeline(*args) timeline_config = SetTimeline.new if args[0] begin @@ -34,11 +34,11 @@ end timeline_config.log(args) timeline_config.save end - desc "set count ITEM NUMBER", "Set ITEM to retrieve NUMBER of elements by default" + desc "count ITEM NUMBER", "Set ITEM to retrieve NUMBER of elements by default" long_desc Descriptions.set_counts map "counts" => :count def count(*args) counts_config = SetCounts.new if args[0] @@ -62,11 +62,11 @@ # map "formats" => :format # def format(*args) # puts args # end - desc "set color ITEM COLOR", "Set ITEM to COLOR" + desc "color ITEM COLOR", "Set ITEM to COLOR" long_desc Descriptions.set_color map "colors" => :color map "colour" => :color map "colours" => :color def color(*args) @@ -86,11 +86,11 @@ end color_config.log(args) color_config.save end - desc "set backup ITEM TRUE/FALSE", "Set ITEM to be activated or not" + desc "backup ITEM TRUE/FALSE", "Set ITEM to be activated or not" long_desc Descriptions.set_backup def backup(*args) backup_config = SetBackup.new if args[0] begin @@ -107,10 +107,10 @@ end backup_config.log(args) backup_config.save end - desc "set defaults", "Sets back the configuration to defaults values" + desc "defaults", "Sets back the configuration to defaults values" long_desc Descriptions.set_defaults def defaults Settings.restore_defaults puts Status.done end