Class: Dcs::Debian::Command
- Inherits:
-
Thor
- Object
- Thor
- Dcs::Debian::Command
- Defined in:
- lib/dcs/debian.rb
Overview
Your code goes hereā¦
Instance Method Summary collapse
Instance Method Details
#changelog(arg) ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/dcs/debian.rb', line 26 def changelog(arg) client = Searcher.new client.pagination("changelog", arg) do |context| puts sprintf("%s (%s)", context[:path].bold.white_on_green, context[:url].white_on_blue) puts context[:pre].gsub(/#{arg}/, '\&'.red_on_yellow) end end |
#control(arg) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/dcs/debian.rb', line 15 def control(arg) client = Searcher.new client.pagination("control", arg) do |context| puts sprintf("%s (%s)", context[:path].bold.white_on_green, context[:url].white_on_blue) puts context[:pre].gsub(/#{arg}/, '\&'.red_on_yellow) end end |
#rules(arg) ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/dcs/debian.rb', line 37 def rules(arg) client = SearchClient.new client.pagination("rules", arg) do |context| puts sprintf("%s (%s)", context[:path].bold.white_on_green, context[:url].white_on_blue) puts context[:pre].gsub(/#{arg}/, '\&'.red_on_yellow) end end |