Module: JCF::Plugins
- Defined in:
- lib/jcf/cli.rb,
lib/jcf/plugins/aws_s3.rb,
lib/jcf/plugins/aws_rds.rb
Defined Under Namespace
Class Method Summary collapse
- .load_plugin(name) ⇒ Object
- .plugins ⇒ Object
-
.register_plugin(name, mod) ⇒ Object
Plugins need to call this method to register themselves:.
Class Method Details
.load_plugin(name) ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'lib/jcf/cli.rb', line 43 def self.load_plugin(name) return @plugins[name] if @plugins[name] puts "Loading plugin #{name}" if ENV["DEBUG"] require "jcf/plugins/#{name}" raise "Plugin didn't correctly register itself" unless @plugins[name] @plugins[name] end |
.plugins ⇒ Object
39 40 41 |
# File 'lib/jcf/cli.rb', line 39 def self.plugins @plugins end |