Class: InstallCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/woodstove/packagecommands.rb

Instance Method Summary collapse

Instance Method Details

#infoObject



20
# File 'lib/woodstove/packagecommands.rb', line 20

def info; 'Install specified packages.'; end

#longObject



17
# File 'lib/woodstove/packagecommands.rb', line 17

def long; 'install'; end

#optsObject



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

#shortObject



18
# File 'lib/woodstove/packagecommands.rb', line 18

def short; 'i'; end