Class: Cupper::OhaiPlugin
- Inherits:
-
Object
- Object
- Cupper::OhaiPlugin
- Defined in:
- lib/cupper/ohai_plugins.rb
Instance Attribute Summary collapse
-
#plugins_path ⇒ Object
readonly
Returns the value of attribute plugins_path.
Instance Method Summary collapse
Instance Attribute Details
#plugins_path ⇒ Object (readonly)
Returns the value of attribute plugins_path.
4 5 6 |
# File 'lib/cupper/ohai_plugins.rb', line 4 def plugins_path @plugins_path end |
Instance Method Details
#list ⇒ Object
6 7 8 9 10 11 |
# File 'lib/cupper/ohai_plugins.rb', line 6 def list @plugins_path = File. '../../cupper/plugins/ohai', __FILE__ @plugins = Dir.entries(@plugins_path).reject{ |entry| entry == '.' || entry == '..' } @plugins.each { |plugin| plugin.chomp!(".rb") } @plugins.sort end |