Sha256: 82f38668f7d88890ac91ce5691a8df7515725397eacd59c699be550494b88f47

Contents?: true

Size: 463 Bytes

Versions: 1

Compression:

Stored size: 463 Bytes

Contents

module Pineapples
  module Actions
    def bundle(command, options = {})
      command = "#{command.first.first} #{command.first.last}" if command.is_a?(Hash)
      say_status :bundle, "#{command}"

      _bundle_command = Gem.bin_path('bundler', 'bundle')

      require 'bundler'
      Bundler.with_clean_env do
        output = `"#{Gem.ruby}" "#{_bundle_command}" #{command} #{subcommands}`
        print output if !options[:quiet]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pineapples-0.3.345 lib/pineapples/actions/bundle.rb