Class: Arli::ArliFile
- Inherits:
-
Object
- Object
- Arli::ArliFile
- Extended by:
- Forwardable
- Includes:
- Library, Enumerable
- Defined in:
- lib/arli/arli_file.rb
Instance Attribute Summary collapse
-
#arlifile_hash ⇒ Object
Returns the value of attribute arlifile_hash.
-
#arlifile_path ⇒ Object
Returns the value of attribute arlifile_path.
-
#config ⇒ Object
Returns the value of attribute config.
-
#dependencies ⇒ Object
(also: #libraries)
Returns the value of attribute dependencies.
-
#device ⇒ Object
Returns the value of attribute device.
Instance Method Summary collapse
-
#initialize(config: Arli.config, libraries: []) ⇒ ArliFile
constructor
A new instance of ArliFile.
- #install ⇒ Object
Methods included from Library
Constructor Details
#initialize(config: Arli.config, libraries: []) ⇒ ArliFile
Returns a new instance of ArliFile.
26 27 28 29 30 31 32 33 34 |
# File 'lib/arli/arli_file.rb', line 26 def initialize(config: Arli.config, libraries: []) self.config = config self.arlifile_path = "#{config.arlifile.path}/#{config.arlifile.name}" self.dependencies = read_dependencies(libraries) self.config.libraries.temp_dir ||= Dir.mktmpdir configure_via_arlifile!(arlifile_hash) end |
Instance Attribute Details
#arlifile_hash ⇒ Object
Returns the value of attribute arlifile_hash.
20 21 22 |
# File 'lib/arli/arli_file.rb', line 20 def arlifile_hash @arlifile_hash end |
#arlifile_path ⇒ Object
Returns the value of attribute arlifile_path.
20 21 22 |
# File 'lib/arli/arli_file.rb', line 20 def arlifile_path @arlifile_path end |
#config ⇒ Object
Returns the value of attribute config.
20 21 22 |
# File 'lib/arli/arli_file.rb', line 20 def config @config end |
#dependencies ⇒ Object Also known as: libraries
Returns the value of attribute dependencies.
20 21 22 |
# File 'lib/arli/arli_file.rb', line 20 def dependencies @dependencies end |
#device ⇒ Object
Returns the value of attribute device.
20 21 22 |
# File 'lib/arli/arli_file.rb', line 20 def device @device end |
Instance Method Details
#install ⇒ Object
38 39 40 41 42 |
# File 'lib/arli/arli_file.rb', line 38 def install each_in_temp_path do |lib| lib.install end end |