Module: Bankai::Docker::DSL::Gemfile
- Included in:
- File
- Defined in:
- lib/bankai/docker/dsl/gemfile.rb
Overview
Gemfile detect
Instance Method Summary collapse
Instance Method Details
#gem?(name) ⇒ Boolean
16 17 18 |
# File 'lib/bankai/docker/dsl/gemfile.rb', line 16 def gem?(name) gemfile.match?(/gem .#{name}./) end |
#mysql? ⇒ Boolean
12 13 14 |
# File 'lib/bankai/docker/dsl/gemfile.rb', line 12 def mysql? gemfile.match?(/gem .mysql2./) end |
#pg? ⇒ Boolean
8 9 10 |
# File 'lib/bankai/docker/dsl/gemfile.rb', line 8 def pg? gemfile.match?(/gem .pg./) end |