class BowerVendor::Fetch
Public Instance Methods
executable()
click to toggle source
# File lib/bower_vendor/fetch.rb, line 16 def executable f = "#{local_node_bin}/bower" File.exists?(f) ? f : 'bower' end
execute()
click to toggle source
# File lib/bower_vendor/fetch.rb, line 2 def execute return if vendors.empty? script = executable puts "excutable: #{script}" Dir.chdir(work_dir) do fork do exec "#{script} install" end Process.wait end end