Sha256: 6c2da274c9df52feb59504d0149b15176bfea4b142e54ffcc73e73d4fee3bdaa

Contents?: true

Size: 359 Bytes

Versions: 6

Compression:

Stored size: 359 Bytes

Contents

class BowerVendor::Fetch < BowerVendor::Base
  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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bower_vendor-0.1.21 lib/bower_vendor/fetch.rb
bower_vendor-0.1.20 lib/bower_vendor/fetch.rb
bower_vendor-0.1.19 lib/bower_vendor/fetch.rb
bower_vendor-0.1.4 lib/bower_vendor/fetch.rb
bower_vendor-0.1.3 lib/bower_vendor/fetch.rb
bower_vendor-0.1.2 lib/bower_vendor/fetch.rb