Sha256: 70baba2a4961ecec4099fdbfc31e15c733393a2b7239ddc1ea75f50f32b55d68

Contents?: true

Size: 340 Bytes

Versions: 6

Compression:

Stored size: 340 Bytes

Contents

module Cupper
  class OhaiPlugin

    attr_reader :plugins_path

    def list
      @plugins_path = File.expand_path '../../cupper/plugins/ohai', __FILE__
      @plugins = Dir.entries(@plugins_path).reject{ |entry| entry == '.' || entry == '..'  }
      @plugins.each { |plugin| plugin.chomp!(".rb") }
      @plugins.sort
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cupper-0.2.1 lib/cupper/ohai_plugins.rb
cupper-0.2.0 lib/cupper/ohai_plugins.rb
cupper-0.1.3 lib/cupper/ohai_plugins.rb
cupper-0.1.2 lib/cupper/ohai_plugins.rb
cupper-0.1.1 lib/cupper/ohai_plugins.rb
cupper-0.1.0 lib/cupper/ohai_plugins.rb