Class: InstallCommand
- Inherits:
-
Object
- Object
- InstallCommand
- Defined in:
- lib/woodstove/packagecommands.rb
Instance Method Summary collapse
Instance Method Details
#info ⇒ Object
20 |
# File 'lib/woodstove/packagecommands.rb', line 20 def info; 'Install specified packages.'; end |
#long ⇒ Object
17 |
# File 'lib/woodstove/packagecommands.rb', line 17 def long; 'install'; end |
#opts ⇒ Object
19 |
# File 'lib/woodstove/packagecommands.rb', line 19 def opts; '[packages]'; end |
#run(packages) ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/woodstove/packagecommands.rb', line 22 def run packages if packages.length < 1 current_package .install_dependencies .install_bins end packages.each do |package| install_package package, "#{FileUtils.pwd}/kindling", "#{FileUtils.pwd}/kindling/.bin" end end |
#short ⇒ Object
18 |
# File 'lib/woodstove/packagecommands.rb', line 18 def short; 'i'; end |