Sha256: 3a8e713c1ddf9f87c34a7c7cf7e1c0a51b7dc85ee52d835860c971045cb64033

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

require "mvcli/core"

module MVCLI
  class Plugins < MVCLI::Core
    requires :bundle, :cortex
    self.path = File.expand_path '../plugins', __FILE__
    self.namespace = ::MVCLI
    self.identifier = 'mvcli-plugins'

    def activate!
      bundle.activate!
      Core.drain do |cls|
        core = cls.new if cls.path
        core.activate!
        cortex << core
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mvcli-0.1.0 lib/mvcli/plugins.rb