Sha256: e7d962676b500f4bcdf8f9b0be5dad858f869f25dcb6759dc2d5f04171c0cd84
Contents?: true
Size: 657 Bytes
Versions: 11
Compression:
Stored size: 657 Bytes
Contents
module Cardio class Mod # Methods used via "eval" in Modfiles module ModfileApi def mod modname, **args @dirs.add_mod modname, **args end # def gem_mod name # deps = Mod.dependencies name # unknown_gem_mod!(name) if deps.blank? # deps.each { |spec| @dirs.add_gem_mod spec.name, spec.full_gem_path } # end # # # add all gem mods # def gem_mods # @dirs.add_from_gemfile # end # # private # # def unknown_gem_mod! name # raise Card::Error, %(Unknown gem "#{name}". Make sure it is in your Gemfile.) # end end end end
Version data entries
11 entries across 11 versions & 1 rubygems