Class: Velcro
- Inherits:
-
Object
- Object
- Velcro
- Defined in:
- lib/velcro.rb,
lib/velcro/errors.rb,
lib/velcro/version.rb,
lib/velcro/brewfile.rb,
lib/velcro/homebrew.rb,
lib/velcro/lockfile.rb,
lib/velcro/executable.rb,
lib/velcro/file_helpers.rb
Defined Under Namespace
Modules: FileHelpers Classes: Brewfile, BrewfileNotFound, Executable, Homebrew, Lockfile
Constant Summary collapse
- VERSION =
'0.1.0'
Instance Attribute Summary collapse
-
#brewfile ⇒ Object
Returns the value of attribute brewfile.
-
#homebrew ⇒ Object
Returns the value of attribute homebrew.
-
#lockfile ⇒ Object
Returns the value of attribute lockfile.
Instance Method Summary collapse
- #generate_lockfile ⇒ Object
-
#initialize ⇒ Velcro
constructor
A new instance of Velcro.
- #install ⇒ Object
- #install_dependencies ⇒ Object
Constructor Details
Instance Attribute Details
#brewfile ⇒ Object
Returns the value of attribute brewfile.
7 8 9 |
# File 'lib/velcro.rb', line 7 def brewfile @brewfile end |
#homebrew ⇒ Object
Returns the value of attribute homebrew.
7 8 9 |
# File 'lib/velcro.rb', line 7 def homebrew @homebrew end |
#lockfile ⇒ Object
Returns the value of attribute lockfile.
7 8 9 |
# File 'lib/velcro.rb', line 7 def lockfile @lockfile end |
Instance Method Details
#generate_lockfile ⇒ Object
24 25 26 |
# File 'lib/velcro.rb', line 24 def generate_lockfile lockfile.generate(brewfile.dependencies) end |
#install ⇒ Object
15 16 17 18 |
# File 'lib/velcro.rb', line 15 def install install_dependencies generate_lockfile end |
#install_dependencies ⇒ Object
20 21 22 |
# File 'lib/velcro.rb', line 20 def install_dependencies homebrew.install_dependencies(brewfile.dependencies) end |