Skip to content

Commit

Permalink
Cookstyle fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Dec 31, 2016
1 parent 115086c commit 4ebdd92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions resources/entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Cookbook:: hostsfile
# Resource:: entry
#
# Copyright 2012-2013, Seth Vargo
# Copyright 2012, CustomInk, LCC
# Copyright:: 2012-2013, Seth Vargo
# Copyright:: 2012, CustomInk, LCC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,5 +32,5 @@
# Optional attributes
attribute :aliases, kind_of: Array
attribute :comment, kind_of: String
attribute :priority, kind_of: Fixnum
attribute :priority, kind_of: Integer
attribute :unique, kind_of: [TrueClass, FalseClass]
4 changes: 2 additions & 2 deletions spec/unit/manipulator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'127.0.0.1 localhost',
'::1 localhost6',
'1.2.3.4 example.com',
'4.5.6.7 foo.example.com'
'4.5.6.7 foo.example.com',
]
end

Expand All @@ -19,7 +19,7 @@
Entry.new(ip_address: '127.0.0.1', hostname: 'localhost', to_line: '127.0.0.1 localhost', priority: 10),
Entry.new(ip_address: '::1', hostname: 'localhost6', to_line: '::1 localhost6', priority: 11),
Entry.new(ip_address: '1.2.3.4', hostname: 'example.com', to_line: '1.2.3.4 example.com', priority: 20),
Entry.new(ip_address: '4.5.6.7', hostname: 'foo.example.com', to_line: '4.5.6.7 foo.example.com', priority: 30)
Entry.new(ip_address: '4.5.6.7', hostname: 'foo.example.com', to_line: '4.5.6.7 foo.example.com', priority: 30),
]
end

Expand Down

0 comments on commit 4ebdd92

Please sign in to comment.