# Ark resource/provider LWRPs changed!

**URL:** <https://discourse.chef.io/t/ark-resource-provider-lwrps-changed/2676>\
**Category:** Chef Infra (archive)\
**Created:** [April 14, 2012, 10:28am UTC](https://discourse.chef.io/t/ark-resource-provider-lwrps-changed/2676 "2012-04-14T10:28:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryan\_Berry](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/bryan_berry/32/213_2.png) [@Bryan\_Berry](https://discourse.chef.io/u/Bryan_Berry)\
**Post date:** [April 14, 2012, 10:28am UTC](https://discourse.chef.io/t/ark-resource-provider-lwrps-changed/2676/1 "2012-04-14T10:28:48Z")

</div>

Dear Chefs,

I did some serious soul searching over the last week and decided to follow  
SSD7's excellent advice to convert my ark\_put, ark\_cherry\_pick, and  
ark\_dump into actions on the main ark resource. I have updated the README,  
related blog posts, and added over 17 minitest tests

> **[bryanwb/chef-ark](https://github.com/bryanwb/chef-ark)**
>
> An archive unpacker and installer. Contribute to bryanwb/chef-ark development by creating an account on GitHub.

before:

ark\_dump "my\_jars" do  
url 'http://....."  
path '/usr/local/tomcat/lib'  
creates 'mysql.jar'  
owner 'tomcat'  
end

ark\_cherry\_pick 'mysql-connector-java' do

```
url 'http://oracle.com/mysql-connector.zip'

creates 'mysql-connector-java-5.0.8-bin.jar'

path '/usr/local/tomcat/lib'

```

end

after:

ark "my\_jars" do  
url 'http://....."  
path '/usr/local/tomcat/lib'  
creates 'mysql.jar'  
owner 'tomcat'  
action :dump  
end

ark 'mysql-connector-java' do

```
url 'http://oracle.com/mysql-connector.zip'

creates 'mysql-connector-java-5.0.8-bin.jar'

path '/usr/local/tomcat/lib'

action :cherry_pick

```

end

I hope these changes make the ark resource easier to use. I can't express  
enough how much the minitest tests improve my confidence in my own code.

I want to thank Steven Danna for taking the time to review my code and to  
BTM for the minitest-handler cookbook.

Please let me know if you have any issues

Please note that the following parts of the ark API are still in flux:

- :build\_with\_make action
- :configure action

Keep it hot!

BryanWB
