{"action":"created","issue":{"url":"https://api.github.com/repos/ooyala/tarball-chef-cookbook/issues/7","labels_url":"https://api.github.com/repos/ooyala/tarball-chef-cookbook/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/ooyala/tarball-chef-cookbook/issues/7/comments","events_url":"https://api.github.com/repos/ooyala/tarball-chef-cookbook/issues/7/events","html_url":"https://github.com/ooyala/tarball-chef-cookbook/issues/7","id":99245297,"number":7,"title":"extract_list Default Behavior","user":{"login":"eeyun","id":12615148,"avatar_url":"https://avatars.githubusercontent.com/u/12615148?v=3","gravatar_id":"","url":"https://api.github.com/users/eeyun","html_url":"https://github.com/eeyun","followers_url":"https://api.github.com/users/eeyun/followers","following_url":"https://api.github.com/users/eeyun/following{/other_user}","gists_url":"https://api.github.com/users/eeyun/gists{/gist_id}","starred_url":"https://api.github.com/users/eeyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eeyun/subscriptions","organizations_url":"https://api.github.com/users/eeyun/orgs","repos_url":"https://api.github.com/users/eeyun/repos","events_url":"https://api.github.com/users/eeyun/events{/privacy}","received_events_url":"https://api.github.com/users/eeyun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kbruner","id":7577051,"avatar_url":"https://avatars.githubusercontent.com/u/7577051?v=3","gravatar_id":"","url":"https://api.github.com/users/kbruner","html_url":"https://github.com/kbruner","followers_url":"https://api.github.com/users/kbruner/followers","following_url":"https://api.github.com/users/kbruner/following{/other_user}","gists_url":"https://api.github.com/users/kbruner/gists{/gist_id}","starred_url":"https://api.github.com/users/kbruner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbruner/subscriptions","organizations_url":"https://api.github.com/users/kbruner/orgs","repos_url":"https://api.github.com/users/kbruner/repos","events_url":"https://api.github.com/users/kbruner/events{/privacy}","received_events_url":"https://api.github.com/users/kbruner/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-08-05T16:32:52Z","updated_at":"2015-09-08T17:15:46Z","closed_at":null,"body":"This may actually be a non-issue: but, when experimenting with this cookbook today I noticed that if I did not pass the extract_list parameter to the `tarball` resource I received a weird error:\r\n\r\n```\r\n             * Parent directory /opt/app/apache-ant-1.8.4/bin does not exist.\r\n             ================================================================================\r\n             Error executing action `create` on resource 'file[/opt/app/apache-ant-1.8.4/bin/ant]'\r\n             ================================================================================\r\n\r\n             Chef::Exceptions::EnclosingDirectoryDoesNotExist\r\n             ------------------------------------------------\r\n             Parent directory /opt/app/apache-ant-1.8.4/bin does not exist.\r\n\r\n             Resource Declaration:\r\n             ---------------------\r\n             suppressed sensitive resource output\r\n\r\n             Compiled Resource:\r\n             ------------------\r\n             suppressed sensitive resource output\r\n\r\n\r\n           ================================================================================\r\n           Error executing action `extract` on resource 'tarball_x[/software/dir/apache-ant-1.8.4-bin.tar]'\r\n           ================================================================================\r\n\r\n           Chef::Exceptions::EnclosingDirectoryDoesNotExist\r\n           ------------------------------------------------\r\n           file[/opt/app/apache-ant-1.8.4/bin/ant] (/tmp/kitchen/cache/cookbooks/tarball/providers/x.rb line 110) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /opt/app/apache-ant-1.8.4/bin does not exist.\r\n\r\n           Resource Declaration:\r\n           ---------------------\r\n           # In /tmp/kitchen/cache/cookbooks/jboss_app_test/recipes/ant.rb\r\n\r\n            15:   tarball node['ant']['url'] do\r\n            16:     destination '/opt/app/'\r\n            17: #    extract_list ['*']\r\n            18:     action :extract\r\n            19:   end\r\n            20: end\r\n\r\n           Compiled Resource:\r\n           ------------------\r\n           # Declared in /tmp/kitchen/cache/cookbooks/jboss_app_test/recipes/ant.rb:15:in `from_file'\r\n\r\n           tarball_x(\"/software/dir/apache-ant-1.8.4-bin.tar\") do\r\n             action [:extract]\r\n             updated true\r\n             updated_by_last_action true\r\n             retries 0\r\n             retry_delay 2\r\n             default_guard_interpreter :default\r\n```\r\n\r\nYou'll probably notice the commented out `extract_list` parameter. If I pass this parameter with a wildcard then only the directories exact successfully successfully. I would think that the default behavior for the provider would be to extract everything if no `extract_list` parameter is passed.\r\n\r\nI haven't had a chance to dig into the provider code just yet but wanted to submit the issue in the case that I was just missing something. If not, I hope too look at it more later today.\r\n"},"comment":{"url":"https://api.github.com/repos/ooyala/tarball-chef-cookbook/issues/comments/138638173","html_url":"https://github.com/ooyala/tarball-chef-cookbook/issues/7#issuecomment-138638173","issue_url":"https://api.github.com/repos/ooyala/tarball-chef-cookbook/issues/7","id":138638173,"user":{"login":"eeyun","id":12615148,"avatar_url":"https://avatars.githubusercontent.com/u/12615148?v=3","gravatar_id":"","url":"https://api.github.com/users/eeyun","html_url":"https://github.com/eeyun","followers_url":"https://api.github.com/users/eeyun/followers","following_url":"https://api.github.com/users/eeyun/following{/other_user}","gists_url":"https://api.github.com/users/eeyun/gists{/gist_id}","starred_url":"https://api.github.com/users/eeyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eeyun/subscriptions","organizations_url":"https://api.github.com/users/eeyun/orgs","repos_url":"https://api.github.com/users/eeyun/repos","events_url":"https://api.github.com/users/eeyun/events{/privacy}","received_events_url":"https://api.github.com/users/eeyun/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T17:15:46Z","updated_at":"2015-09-08T17:15:46Z","body":"This is awesome! Thanks for getting back to me!"}}