Class: Ayadn::Blacklist
- Inherits:
-
Thor
- Object
- Thor
- Ayadn::Blacklist
- Defined in:
- lib/ayadn/blacklist.rb
Instance Method Summary collapse
Instance Method Details
#add(*args) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/ayadn/blacklist.rb', line 7 def add(*args) if args.length < 2 Status.new.type_and_target_missing exit end BlacklistWorkers.new.add(args) Status.new.done end |
#clear ⇒ Object
43 44 45 46 |
# File 'lib/ayadn/blacklist.rb', line 43 def clear BlacklistWorkers.new.clear Status.new.done end |
#list ⇒ Object
32 33 34 |
# File 'lib/ayadn/blacklist.rb', line 32 def list BlacklistWorkers.new.list() end |
#remove(*args) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/ayadn/blacklist.rb', line 19 def remove(*args) if args.length < 2 Status.new.type_and_target_missing exit end BlacklistWorkers.new.remove(args) Status.new.done end |