Class: Cejo::Distro::ParsedCommands
- Inherits:
-
Object
- Object
- Cejo::Distro::ParsedCommands
- Defined in:
- lib/cejo/distro/parsed_commands.rb
Overview
Objectfy commands parsed
Instance Attribute Summary collapse
-
#folder ⇒ Object
readonly
Returns the value of attribute folder.
-
#utils ⇒ Object
readonly
Returns the value of attribute utils.
Instance Method Summary collapse
- #any? ⇒ Boolean
- #found ⇒ Object
-
#initialize(utils, folder) ⇒ ParsedCommands
constructor
A new instance of ParsedCommands.
Constructor Details
#initialize(utils, folder) ⇒ ParsedCommands
Returns a new instance of ParsedCommands.
9 10 11 12 |
# File 'lib/cejo/distro/parsed_commands.rb', line 9 def initialize(utils, folder) @utils = utils @folder = folder.join 'distro' end |
Instance Attribute Details
#folder ⇒ Object (readonly)
Returns the value of attribute folder.
7 8 9 |
# File 'lib/cejo/distro/parsed_commands.rb', line 7 def folder @folder end |
#utils ⇒ Object (readonly)
Returns the value of attribute utils.
7 8 9 |
# File 'lib/cejo/distro/parsed_commands.rb', line 7 def utils @utils end |
Instance Method Details
#any? ⇒ Boolean
18 19 20 |
# File 'lib/cejo/distro/parsed_commands.rb', line 18 def any? packagers.any? end |
#found ⇒ Object
14 15 16 |
# File 'lib/cejo/distro/parsed_commands.rb', line 14 def found utils.parse_folder folder end |