Sha256: 1a1b70a549d442c8a467c3f5760193e04e32f410de18e2fd1f36f2bfbe153eec

Contents?: true

Size: 329 Bytes

Versions: 2

Compression:

Stored size: 329 Bytes

Contents

class BowerVendor::Fetch < BowerVendor::Base
  def execute
    script = executable
    puts "excutable: #{script}"

    Dir.chdir(work_dir) do
      fork do
        exec "#{script} install"
      end
      Process.wait
    end
  end

  def executable
    f = "#{local_node_bin}/bower"
    File.exists?(f) ? f : 'bower'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bower_vendor-0.1.1 lib/bower_vendor/fetch.rb
bower_vendor-0.1.0 lib/bower_vendor/fetch.rb