class InstallCommand

Public Instance Methods

info() click to toggle source
# File lib/woodstove/packagecommands.rb, line 20
def info; 'Install specified packages.'; end
long() click to toggle source
# File lib/woodstove/packagecommands.rb, line 17
def long; 'install'; end
opts() click to toggle source
# File lib/woodstove/packagecommands.rb, line 19
def opts; '[packages]'; end
run(packages) click to toggle source
# 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() click to toggle source
# File lib/woodstove/packagecommands.rb, line 18
def short; 'i'; end