summaryrefslogtreecommitdiff
path: root/lib/chef/resource/route.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-02 11:11:35 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-02 11:13:54 -0700
commit77f8739a4741e2370e40ec39345a92a6ea393a1a (patch)
treebcf3c9a12556ce1fd18a83cd5f68cd24d36a1180 /lib/chef/resource/route.rb
parent90a74a80196725c4198b6042e8485d68c70777ac (diff)
downloadchef-77f8739a4741e2370e40ec39345a92a6ea393a1a.tar.gz
fix Layout/AlignArgumentslcg/new-chefstyle
this is using: Layout/AlignArguments: Enabled: true EnforcedStyle: with_fixed_indentation the default style can use really excessive whitespace. on starting lines which are already long, it fully indents across to where the arguments start and then begins the line there. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource/route.rb')
-rw-r--r--lib/chef/resource/route.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/chef/resource/route.rb b/lib/chef/resource/route.rb
index 64576bc651..42302afe6a 100644
--- a/lib/chef/resource/route.rb
+++ b/lib/chef/resource/route.rb
@@ -28,29 +28,29 @@ class Chef
description "Use the route resource to manage the system routing table in a Linux environment."
property :target, String,
- description: "The IP address of the target route.",
- identity: true, name_property: true
+ description: "The IP address of the target route.",
+ identity: true, name_property: true
property :comment, [String, nil],
- description: "Add a comment for the route.",
- introduced: "14.0"
+ description: "Add a comment for the route.",
+ introduced: "14.0"
property :metric, [Integer, nil],
- description: "The route metric value."
+ description: "The route metric value."
property :netmask, [String, nil],
- description: "The decimal representation of the network mask. For example: 255.255.255.0."
+ description: "The decimal representation of the network mask. For example: 255.255.255.0."
property :gateway, [String, nil],
- description: "The gateway for the route."
+ description: "The gateway for the route."
property :device, [String, nil],
- description: "The network interface to which the route applies.",
- desired_state: false # Has a partial default in the provider of eth0.
+ description: "The network interface to which the route applies.",
+ desired_state: false # Has a partial default in the provider of eth0.
property :route_type, [Symbol, String],
- description: "",
- equal_to: [:host, :net], default: :host, desired_state: false
+ description: "",
+ equal_to: [:host, :net], default: :host, desired_state: false
end
end
end