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

Version Path
card-1.108.1 lib/cardio/mod/modfile_api.rb
card-1.108.0 lib/cardio/mod/modfile_api.rb
card-1.107.0 lib/cardio/mod/modfile_api.rb
card-1.106.0 lib/cardio/mod/modfile_api.rb
card-1.105.6 lib/cardio/mod/modfile_api.rb
card-1.105.5 lib/cardio/mod/modfile_api.rb
card-1.105.4 lib/cardio/mod/modfile_api.rb
card-1.105.3 lib/cardio/mod/modfile_api.rb
card-1.105.2.pre1 lib/cardio/mod/modfile_api.rb
card-1.105.2 lib/cardio/mod/modfile_api.rb
card-1.105.1 lib/cardio/mod/modfile_api.rb