summaryrefslogtreecommitdiff
path: root/lib/chef/resource/scm.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/scm.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/scm.rb')
-rw-r--r--lib/chef/resource/scm.rb36
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/chef/resource/scm.rb b/lib/chef/resource/scm.rb
index 473006140d..b62afb459d 100644
--- a/lib/chef/resource/scm.rb
+++ b/lib/chef/resource/scm.rb
@@ -25,49 +25,49 @@ class Chef
allowed_actions :checkout, :export, :sync, :diff, :log
property :destination, String,
- description: "The location path to which the source is to be cloned, checked out, or exported. Default value: the name of the resource block.",
- name_property: true, identity: true
+ description: "The location path to which the source is to be cloned, checked out, or exported. Default value: the name of the resource block.",
+ name_property: true, identity: true
property :repository, String
property :revision, String,
- description: "The revision to checkout.",
- default: "HEAD"
+ description: "The revision to checkout.",
+ default: "HEAD"
property :user, [String, Integer],
- description: "The system user that is responsible for the checked-out code."
+ description: "The system user that is responsible for the checked-out code."
property :group, [String, Integer],
- description: "The system group that is responsible for the checked-out code."
+ description: "The system group that is responsible for the checked-out code."
# Capistrano and git-deploy use ``shallow clone''
property :depth, Integer,
- description: "The number of past revisions to be included in the git shallow clone. Unless specified the default behavior will do a full clone."
+ description: "The number of past revisions to be included in the git shallow clone. Unless specified the default behavior will do a full clone."
property :enable_submodules, [TrueClass, FalseClass],
- description: "Perform a sub-module initialization and update.",
- default: false
+ description: "Perform a sub-module initialization and update.",
+ default: false
property :enable_checkout, [TrueClass, FalseClass],
- description: "Check out a repo from master. Set to false when using the checkout_branch attribute to prevent the git resource from attempting to check out master from master.",
- default: true
+ description: "Check out a repo from master. Set to false when using the checkout_branch attribute to prevent the git resource from attempting to check out master from master.",
+ default: true
property :remote, String,
- default: "origin"
+ default: "origin"
property :ssh_wrapper, String,
- desired_state: false
+ desired_state: false
property :timeout, Integer,
- desired_state: false
+ desired_state: false
property :checkout_branch, String,
- description: "Do a one-time checkout **or** use when a branch in the upstream repository is named 'deploy'. To prevent the resource from attempting to check out master from master, set 'enable_checkout' to 'false' when using the 'checkout_branch' property.",
- default: "deploy"
+ description: "Do a one-time checkout **or** use when a branch in the upstream repository is named 'deploy'. To prevent the resource from attempting to check out master from master, set 'enable_checkout' to 'false' when using the 'checkout_branch' property.",
+ default: "deploy"
property :environment, [Hash, nil],
- description: "A Hash of environment variables in the form of ({'ENV_VARIABLE' => 'VALUE'}).",
- default: nil
+ description: "A Hash of environment variables in the form of ({'ENV_VARIABLE' => 'VALUE'}).",
+ default: nil
alias :env :environment
end