Impossible to call the provider


#1

Hello!
We’re trying to write a provider. For example: MySql. It consists of the
following components:

mysql/attributes/default.rb
containing:

default[‘mysql’][‘m_version’] = “1.0.0”

mysql/attributes/providers.rb
containing:

action :ololo do
execute “print some” do
puts "Olololo!"
end
end

mysql/resouces/default.rb
containing:

actions :ololo
attribute :ololo, :kind_of => String

After that, we are creating a recipe dump_extract/recipes/default.rb,
containing the following:

include Chef::Provider::Mysql

mysql do
provider "default"
end

After that, we’re trying to run dump_extract, but it is impossible to
call the provider Mysql.
Tell me please how to make a call to the provider. The official
documentation contain very little information.

Thank you!

P.S. mysql used as an example. call it something different: ololo. It
essentially does not change. we need to write own provider, but it’s not
clear how to do it. documentation is very vague.


Best Regards,
Alexander Kleymenov

mobile: +7(903)197-1881
jabber/gtalk: kleymenus@gmail.com