class Ridley::CookbookObject
Public Instance Methods
has_motherbrain_plugin?()
click to toggle source
Check if the cookbook has the required files to be a motherbrain plugin
@return [Boolean]
# File lib/mb/ridley_ext/cookbook_object.rb, line 6 def has_motherbrain_plugin? plugin_file = root_files.find { |file| file[:name] == MB::Plugin::PLUGIN_FILENAME } metadata_file = root_files.find do |file| file[:name] == MB::CookbookMetadata::RUBY_FILENAME || file[:name] == MB::CookbookMetadata::JSON_FILENAME end plugin_file && metadata_file end