summaryrefslogtreecommitdiff
path: root/lib/chef/resource/launchd.rb
diff options
context:
space:
mode:
authorMike Dodge <mikedodge04@fb.com>2016-02-15 12:59:41 -0800
committerMike Dodge <mikedodge04@fb.com>2016-02-15 12:59:41 -0800
commitaef381aa1cff43b684ba022d5ce1b2349ea4e4dc (patch)
treefebac97171b1b5af082b7785103bfee2295599fd /lib/chef/resource/launchd.rb
parentc2eea28dd0708c0aed8270d0f5c57be7f9cc4707 (diff)
downloadchef-aef381aa1cff43b684ba022d5ce1b2349ea4e4dc.tar.gz
bundle exec chefstyle -a
Diffstat (limited to 'lib/chef/resource/launchd.rb')
-rw-r--r--lib/chef/resource/launchd.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/resource/launchd.rb b/lib/chef/resource/launchd.rb
index 7abd9b93d8..f3c378a6a8 100644
--- a/lib/chef/resource/launchd.rb
+++ b/lib/chef/resource/launchd.rb
@@ -16,8 +16,8 @@
# limitations under the License.
#
-require 'chef/resource'
-require 'chef/provider/launchd'
+require "chef/resource"
+require "chef/provider/launchd"
class Chef
class Resource
@@ -46,12 +46,12 @@ class Chef
property :source, String
property :session_type, String
- property :type, String, default: 'daemon', coerce: proc { |type|
- type = type ? type.downcase : 'daemon'
- types = [ 'daemon', 'agent' ]
+ property :type, String, default: "daemon", coerce: proc { |type|
+ type = type ? type.downcase : "daemon"
+ types = %w{daemon agent}
unless types.include?(type)
- error_msg = 'type must be daemon or agent'
+ error_msg = "type must be daemon or agent"
raise Chef::Exceptions::ValidationFailed, error_msg
end
type