Class: Cejo::Distro::ParsedCommands

Inherits:
Object
  • Object
show all
Defined in:
lib/cejo/distro/parsed_commands.rb

Overview

Objectfy commands parsed

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#folderObject (readonly)

Returns the value of attribute folder.



7
8
9
# File 'lib/cejo/distro/parsed_commands.rb', line 7

def folder
  @folder
end

#utilsObject (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

Returns:

  • (Boolean)


18
19
20
# File 'lib/cejo/distro/parsed_commands.rb', line 18

def any?
  packagers.any?
end

#foundObject



14
15
16
# File 'lib/cejo/distro/parsed_commands.rb', line 14

def found
  utils.parse_folder folder
end