Sha256: 1097ae649ecd62f8d3d6dc4f264466a3277f4c2a8c33285b1da0b72ee12602fb

Contents?: true

Size: 728 Bytes

Versions: 1

Compression:

Stored size: 728 Bytes

Contents

# frozen_string_literal: true

require 'mina/default'

set :bundle_bin, 'bundle'
set :bundle_path, 'vendor/bundle'
set :bundle_withouts, 'development test'
set :bundle_options, -> { %(--without #{fetch(:bundle_withouts)} --path "#{fetch(:bundle_path)}" --deployment) }
set :shared_dirs, fetch(:shared_dirs, []).push(fetch(:bundle_path))

namespace :bundle do
  desc 'Install gem dependencies using Bundler.'
  task :install do
    comment %(Installing gem dependencies using Bundler)
    command %(#{fetch(:bundle_bin)} install #{fetch(:bundle_options)})
  end

  desc 'Cleans up unused gems in your bundler directory'
  task :clean do
    comment %(Cleaning up unused gems)
    command %(#{fetch(:bundle_bin)} clean)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mina-1.2.5 tasks/mina/bundler.rb