Class: Soca::Plugin
- Inherits:
-
Object
- Object
- Soca::Plugin
- Defined in:
- lib/soca/plugin.rb
Direct Known Subclasses
Soca::Plugins::CoffeeScript, Soca::Plugins::Compass, Soca::Plugins::Credentials, Soca::Plugins::Haml, Soca::Plugins::Jim, Soca::Plugins::Macro, Soca::Plugins::Mustache
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#pusher ⇒ Object
readonly
Returns the value of attribute pusher.
Class Method Summary collapse
Instance Method Summary collapse
- #app_dir ⇒ Object
- #config ⇒ Object
-
#initialize(pusher, options = {}) ⇒ Plugin
constructor
A new instance of Plugin.
- #logger ⇒ Object
Constructor Details
#initialize(pusher, options = {}) ⇒ Plugin
Returns a new instance of Plugin.
15 16 17 18 |
# File 'lib/soca/plugin.rb', line 15 def initialize(pusher, = {}) @pusher = pusher @options = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/soca/plugin.rb', line 4 def @options end |
#pusher ⇒ Object (readonly)
Returns the value of attribute pusher.
3 4 5 |
# File 'lib/soca/plugin.rb', line 3 def pusher @pusher end |
Class Method Details
.name(plugin_name) ⇒ Object
6 7 8 9 |
# File 'lib/soca/plugin.rb', line 6 def self.name(plugin_name) @@plugins ||= {} @@plugins[plugin_name] = self end |
.plugins ⇒ Object
11 12 13 |
# File 'lib/soca/plugin.rb', line 11 def self.plugins @@plugins ||= {} end |
Instance Method Details
#app_dir ⇒ Object
24 25 26 |
# File 'lib/soca/plugin.rb', line 24 def app_dir pusher.app_dir end |
#config ⇒ Object
28 29 30 |
# File 'lib/soca/plugin.rb', line 28 def config pusher.config end |