{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/lvm/issues/72","labels_url":"https://api.github.com/repos/chef-cookbooks/lvm/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/lvm/issues/72/comments","events_url":"https://api.github.com/repos/chef-cookbooks/lvm/issues/72/events","html_url":"https://github.com/chef-cookbooks/lvm/pull/72","id":115148058,"number":72,"title":"Added \"compile_time false if respond_to?(:compile_time)\"","user":{"login":"osgrob","id":9460696,"avatar_url":"https://avatars.githubusercontent.com/u/9460696?v=3","gravatar_id":"","url":"https://api.github.com/users/osgrob","html_url":"https://github.com/osgrob","followers_url":"https://api.github.com/users/osgrob/followers","following_url":"https://api.github.com/users/osgrob/following{/other_user}","gists_url":"https://api.github.com/users/osgrob/gists{/gist_id}","starred_url":"https://api.github.com/users/osgrob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osgrob/subscriptions","organizations_url":"https://api.github.com/users/osgrob/orgs","repos_url":"https://api.github.com/users/osgrob/repos","events_url":"https://api.github.com/users/osgrob/events{/privacy}","received_events_url":"https://api.github.com/users/osgrob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-04T21:07:27Z","updated_at":"2015-11-04T21:30:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chef-cookbooks/lvm/pulls/72","html_url":"https://github.com/chef-cookbooks/lvm/pull/72","diff_url":"https://github.com/chef-cookbooks/lvm/pull/72.diff","patch_url":"https://github.com/chef-cookbooks/lvm/pull/72.patch"},"body":"I was having trouble including the lvm cookbook as part of a run list in an environment that does not have direct access to ruby-gems.org, but configures the instance to use nexus as part of the run list.\r\n\r\ni.e. The gem cannot be installed compile time, but after certain other resources in the run list have converged the chef-gem resource is able to install the required gems.\r\n\r\nI have tested that adding \"compile_time false if respond_to?(:compile_time)\" to both chef-gems to insure compile_time installation is disabled as discussed: https://docs.chef.io/resource_chef_gem.html both passes existing kitchen tests and resolves the issue in my environment.\r\n\r\nWould this be a good addition to the lvm cookbook?"},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/lvm/issues/comments/153871646","html_url":"https://github.com/chef-cookbooks/lvm/pull/72#issuecomment-153871646","issue_url":"https://api.github.com/repos/chef-cookbooks/lvm/issues/72","id":153871646,"user":{"login":"roblperry","id":1269802,"avatar_url":"https://avatars.githubusercontent.com/u/1269802?v=3","gravatar_id":"","url":"https://api.github.com/users/roblperry","html_url":"https://github.com/roblperry","followers_url":"https://api.github.com/users/roblperry/followers","following_url":"https://api.github.com/users/roblperry/following{/other_user}","gists_url":"https://api.github.com/users/roblperry/gists{/gist_id}","starred_url":"https://api.github.com/users/roblperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblperry/subscriptions","organizations_url":"https://api.github.com/users/roblperry/orgs","repos_url":"https://api.github.com/users/roblperry/repos","events_url":"https://api.github.com/users/roblperry/events{/privacy}","received_events_url":"https://api.github.com/users/roblperry/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T21:30:56Z","updated_at":"2015-11-04T21:30:56Z","body":"@scalp42 \r\n\r\n   https://docs.chef.io/resource_chef_gem.html says that what you suggested is for when on is using chef-sugar older than version 3.0.1.  I am not using chef-sugar and my original change works flawlessly for me, but you still may have a good point.  I don't want to make life bad for anyone who is using chef-sugar.\r\n\r\n   I'll try to test that code you suggested later to see what it does without chef-sugar.\r\n\r\nThanks\r\nRob\r\n\r\n   \r\n\r\n\r\n"}}