Sha256: e336f58c9da4deabec960d39d3cc53bef9a7a4a72435f4dd69c96d4fcf101549

Contents?: true

Size: 380 Bytes

Versions: 8

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

module Bankai
  # :nodoc:
  module Helper
    protected

    def pg?
      gemfile.match?(/gem .pg./)
    end

    def mysql?
      gemfile.match?(/gem .mysql2./)
    end

    def capistrano?
      gemfile.match?(/gem .capistrano./)
    end

    private

    def gemfile
      @gemfile ||= File.read("#{destination_root}/Gemfile")
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bankai-0.13.1 lib/bankai/helper.rb
bankai-0.13.0 lib/bankai/helper.rb
bankai-0.12.1 lib/bankai/helper.rb
bankai-0.12.0 lib/bankai/helper.rb
bankai-0.11.0 lib/bankai/helper.rb
bankai-0.10.0 lib/bankai/helper.rb
bankai-0.9.1 lib/bankai/helper.rb
bankai-0.9.0 lib/bankai/helper.rb