<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/ruby-gems/chef.git/lib/chef/resource/launchd.rb, branch https_shell</title>
<subtitle>github.com: opscode/chef.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/'/>
<entry>
<title>Respond to review comments and chefstyle</title>
<updated>2016-11-10T12:06:37+00:00</updated>
<author>
<name>Thom May</name>
<email>thom@chef.io</email>
</author>
<published>2016-10-06T13:56:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=65135ccabb85dd4c20982492f1f2cfeed6b12570'/>
<id>65135ccabb85dd4c20982492f1f2cfeed6b12570</id>
<content type='text'>
Signed-off-by: Thom May &lt;thom@chef.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Thom May &lt;thom@chef.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Code style fixes; :lipstick:</title>
<updated>2016-11-10T12:02:11+00:00</updated>
<author>
<name>Andrew Burns</name>
<email>andrew@fetlife.com</email>
</author>
<published>2016-07-15T17:21:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=fd5d5238c95d3d5d9a25812f91295805a90026cf'/>
<id>fd5d5238c95d3d5d9a25812f91295805a90026cf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>launchd: start_calendar_interval validity checking</title>
<updated>2016-11-10T12:02:11+00:00</updated>
<author>
<name>Andrew Burns</name>
<email>andrew@fetlife.com</email>
</author>
<published>2016-07-14T15:15:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=29ff4157f6144cc73967414cea60d7f426f00b91'/>
<id>29ff4157f6144cc73967414cea60d7f426f00b91</id>
<content type='text'>
StartCalendarInterval has some gotchas so we coerce it to sanity check.

According to `man 5 launchd.plist`:
  StartCalendarInterval [is a] &lt;dictionary of integers or array of dictionaries of integers&gt;
    ... Missing arguments are considered to be wildcard.

What the man page doesn't state, but what was observed (OSX 10.11.5, launchctrl v3.4.0) is that key that are specified, _but with invalid values, will also be silently treated as a wildcard values.

This means that an entry like:
  { "Hour"=&gt;0, "Weekday"=&gt;"6-7"}
will not just run on midnight of Sat and Sun, rather it will run _every_ midnight.

We check to make sure that the values are integers and not strings, adhering to the manpage documentation.

This also ensures that only keys that StartCalendarInterval supports will be passed.
This eliminates passing a key (like `:hour` or `'hour') and thinking it works when in reality launchd is just treating it as a wildcard.

NOTE: This is a "breaking" change in that: it will break existing cookbooks that are using the current docs: https://docs.chef.io/resource_launchd.html (See start_calendar_interval); however the generated plist doesn't appear to actually do what was intended anyway.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
StartCalendarInterval has some gotchas so we coerce it to sanity check.

According to `man 5 launchd.plist`:
  StartCalendarInterval [is a] &lt;dictionary of integers or array of dictionaries of integers&gt;
    ... Missing arguments are considered to be wildcard.

What the man page doesn't state, but what was observed (OSX 10.11.5, launchctrl v3.4.0) is that key that are specified, _but with invalid values, will also be silently treated as a wildcard values.

This means that an entry like:
  { "Hour"=&gt;0, "Weekday"=&gt;"6-7"}
will not just run on midnight of Sat and Sun, rather it will run _every_ midnight.

We check to make sure that the values are integers and not strings, adhering to the manpage documentation.

This also ensures that only keys that StartCalendarInterval supports will be passed.
This eliminates passing a key (like `:hour` or `'hour') and thinking it works when in reality launchd is just treating it as a wildcard.

NOTE: This is a "breaking" change in that: it will break existing cookbooks that are using the current docs: https://docs.chef.io/resource_launchd.html (See start_calendar_interval); however the generated plist doesn't appear to actually do what was intended anyway.
</pre>
</div>
</content>
</entry>
<entry>
<title>String to Array launchd:limit_load_to_session_type (#5424)</title>
<updated>2016-11-08T18:17:38+00:00</updated>
<author>
<name>Erik Gomez</name>
<email>e@eriknicolasgomez.com</email>
</author>
<published>2016-11-08T18:17:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=d85f6b6e4c1450a5c80479c8bf07cd9ba3d806f4'/>
<id>d85f6b6e4c1450a5c80479c8bf07cd9ba3d806f4</id>
<content type='text'>
Mac: Ensure that launchd limit_load_to_session_type is properly handled</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Mac: Ensure that launchd limit_load_to_session_type is properly handled</pre>
</div>
</content>
</entry>
<entry>
<title>Add Hash type to launchd:keep_alive</title>
<updated>2016-08-08T23:48:11+00:00</updated>
<author>
<name>Erik Gomez</name>
<email>e@eriknicolasgomez.com</email>
</author>
<published>2016-08-08T23:48:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=e2c8036e0ca868cd4126fe36533f1c1ad69d3cf0'/>
<id>e2c8036e0ca868cd4126fe36533f1c1ad69d3cf0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title> bundle exec chefstyle -a</title>
<updated>2016-02-15T20:59:41+00:00</updated>
<author>
<name>Mike Dodge</name>
<email>mikedodge04@fb.com</email>
</author>
<published>2016-02-15T20:59:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=aef381aa1cff43b684ba022d5ce1b2349ea4e4dc'/>
<id>aef381aa1cff43b684ba022d5ce1b2349ea4e4dc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>made requested changes</title>
<updated>2016-02-15T20:48:30+00:00</updated>
<author>
<name>Mike Dodge</name>
<email>mikedodge04@fb.com</email>
</author>
<published>2016-02-02T23:21:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=2b3298482ab4f251640cdce4ea82e3c5de8f2d4c'/>
<id>2b3298482ab4f251640cdce4ea82e3c5de8f2d4c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fixed rebase</title>
<updated>2016-02-15T20:48:30+00:00</updated>
<author>
<name>Mike Dodge</name>
<email>mikedodge04@fb.com</email>
</author>
<published>2016-01-19T22:15:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=24a34f075c4a6173f8cfddd09d7406f23b6a3a68'/>
<id>24a34f075c4a6173f8cfddd09d7406f23b6a3a68</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>added specs</title>
<updated>2016-02-15T20:48:30+00:00</updated>
<author>
<name>Mike Dodge</name>
<email>mikedodge04@fb.com</email>
</author>
<published>2015-12-21T19:18:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=de6857c4445fb1fb92139f0f6e1d9e654e4f28c2'/>
<id>de6857c4445fb1fb92139f0f6e1d9e654e4f28c2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>launchd</title>
<updated>2016-02-15T20:48:29+00:00</updated>
<author>
<name>Mike Dodge</name>
<email>mikedodge04@fb.com</email>
</author>
<published>2015-10-27T18:21:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=66c4f6af84f33ac40ff2912a61ee9a3be2ca878c'/>
<id>66c4f6af84f33ac40ff2912a61ee9a3be2ca878c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
