class BowerVendor::Check

Public Instance Methods

executable() click to toggle source
# File lib/bower_vendor/check.rb, line 13
def executable
  f = "#{local_node_bin}/bcu"
  puts "BCU: #{f}"
  File.exists?(f) ? f : 'bcu'
end
execute() click to toggle source
# File lib/bower_vendor/check.rb, line 2
def execute
  Dir.chdir(work_dir) do
    script = executable
    puts "excutable: #{script}"
    fork do
      exec "#{script}"
    end
    Process.wait
  end
end