Sha256: 5f2da055f23471a7d1da80c81a133b85103248b72d2f91e1c44d0ed276bff783

Contents?: true

Size: 358 Bytes

Versions: 5

Compression:

Stored size: 358 Bytes

Contents

module BowerVendor
  class Fetch < 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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bower_vendor-0.0.18 lib/bower_vendor/fetch.rb
bower_vendor-0.0.17 lib/bower_vendor/fetch.rb
bower_vendor-0.0.16 lib/bower_vendor/fetch.rb
bower_vendor-0.0.15 lib/bower_vendor/fetch.rb
bower_vendor-0.0.13 lib/bower_vendor/fetch.rb