Sha256: 2e3f17b7f8114ef91214800b3fa417ac9d3612e40da3f908b60884c15cf6161d
Contents?: true
Size: 414 Bytes
Versions: 3
Compression:
Stored size: 414 Bytes
Contents
require 'pathname' module SchemaDev GEMFILES_DIR = "gemfiles" module GemfileSelector def self.gemfile(rails:, db: nil) root = Pathname.new(GEMFILES_DIR) if db root.join("rails-#{rails}", "Gemfile.#{db}") else root.join("Gemfile.#{rails}") end end def self.command(rails:, db: nil) "BUNDLE_GEMFILE=#{gemfile(rails: rails, db: db)}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
schema_dev-0.0.3 | lib/schema_dev/gemfile_selector.rb |
schema_dev-0.0.2 | lib/schema_dev/gemfile_selector.rb |
schema_dev-0.0.1 | lib/schema_dev/gemfile_selector.rb |