Class: FindProfile
- Inherits:
-
ZoomProfile
- Object
- Hash
- ZoomProfile
- FindProfile
- Defined in:
- lib/find_profile.rb
Instance Attribute Summary
Attributes inherited from ZoomProfile
Instance Method Summary collapse
- #exe(args, pattern) ⇒ Object
-
#initialize(operator = nil, flags = ". -name", envprepend = "", append = "") ⇒ FindProfile
constructor
A new instance of FindProfile.
Methods inherited from ZoomProfile
#append, #colors, #flags, from_json, #info, #operator, #prepend, #to_s
Constructor Details
#initialize(operator = nil, flags = ". -name", envprepend = "", append = "") ⇒ FindProfile
Returns a new instance of FindProfile.
19 20 21 22 23 24 25 26 27 |
# File 'lib/find_profile.rb', line 19 def initialize( operator = nil, flags = ". -name", envprepend = "", append = "" ) super("find", flags, envprepend, append) @taggable = true end |
Instance Method Details
#exe(args, pattern) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/find_profile.rb', line 5 def exe(args, pattern) if (pattern.nil? || pattern.empty?) system( "#{self.to_s} #{args} \"*\" #{self.append} | " \ "#{@pager}" ) else system( "#{self.to_s} #{args} \"#{pattern}\" " \ "#{self.append} | #{@pager}" ) end end |