summaryrefslogtreecommitdiff
path: root/lib/chef/resource/mount.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-05 15:00:00 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-05 15:00:00 -0800
commit686113531d23f30e9973d659c456ae33eb9cff1f (patch)
treef225de7251a8b49b8d183dd168bab0a0addbe23f /lib/chef/resource/mount.rb
parentd1cf34b059a16a81e0fc48de52ba29863bb41fe6 (diff)
downloadchef-686113531d23f30e9973d659c456ae33eb9cff1f.tar.gz
autofixing whitespace cops
4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
Diffstat (limited to 'lib/chef/resource/mount.rb')
-rw-r--r--lib/chef/resource/mount.rb30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/chef/resource/mount.rb b/lib/chef/resource/mount.rb
index 9d0c0291f8..7bbff57f50 100644
--- a/lib/chef/resource/mount.rb
+++ b/lib/chef/resource/mount.rb
@@ -30,7 +30,7 @@ class Chef
default_action :mount
allowed_actions :mount, :umount, :remount, :enable, :disable
- def initialize(name, run_context=nil)
+ def initialize(name, run_context = nil)
super
@mount_point = name
@device = nil
@@ -48,7 +48,7 @@ class Chef
@domain = nil
end
- def mount_point(arg=nil)
+ def mount_point(arg = nil)
set_or_return(
:mount_point,
arg,
@@ -56,7 +56,7 @@ class Chef
)
end
- def device(arg=nil)
+ def device(arg = nil)
set_or_return(
:device,
arg,
@@ -64,7 +64,7 @@ class Chef
)
end
- def device_type(arg=nil)
+ def device_type(arg = nil)
real_arg = arg.kind_of?(String) ? arg.to_sym : arg
valid_devices = if RUBY_PLATFORM =~ /solaris/i
[ :device ]
@@ -78,7 +78,7 @@ class Chef
)
end
- def fsck_device(arg=nil)
+ def fsck_device(arg = nil)
set_or_return(
:fsck_device,
arg,
@@ -86,7 +86,7 @@ class Chef
)
end
- def fstype(arg=nil)
+ def fstype(arg = nil)
set_or_return(
:fstype,
arg,
@@ -94,7 +94,7 @@ class Chef
)
end
- def options(arg=nil)
+ def options(arg = nil)
ret = set_or_return(
:options,
arg,
@@ -108,7 +108,7 @@ class Chef
end
end
- def dump(arg=nil)
+ def dump(arg = nil)
set_or_return(
:dump,
arg,
@@ -116,7 +116,7 @@ class Chef
)
end
- def pass(arg=nil)
+ def pass(arg = nil)
set_or_return(
:pass,
arg,
@@ -124,7 +124,7 @@ class Chef
)
end
- def mounted(arg=nil)
+ def mounted(arg = nil)
set_or_return(
:mounted,
arg,
@@ -132,7 +132,7 @@ class Chef
)
end
- def enabled(arg=nil)
+ def enabled(arg = nil)
set_or_return(
:enabled,
arg,
@@ -140,7 +140,7 @@ class Chef
)
end
- def supports(args={})
+ def supports(args = {})
if args.is_a? Array
args.each { |arg| @supports[arg] = true }
elsif args.any?
@@ -150,7 +150,7 @@ class Chef
end
end
- def username(arg=nil)
+ def username(arg = nil)
set_or_return(
:username,
arg,
@@ -158,7 +158,7 @@ class Chef
)
end
- def password(arg=nil)
+ def password(arg = nil)
set_or_return(
:password,
arg,
@@ -166,7 +166,7 @@ class Chef
)
end
- def domain(arg=nil)
+ def domain(arg = nil)
set_or_return(
:domain,
arg,