Sha256: aee50028c1e7110722e3239284e8e3967a1afea921b0c69fea8298bef8f64a25

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
bankai-0.2.3 lib/bankai/helper.rb