diff --git a/providers/group.rb b/providers/group.rb index f9d90aa..4669242 100644 --- a/providers/group.rb +++ b/providers/group.rb @@ -22,9 +22,9 @@ def set_vars admin_password = new_resource.admin_password port = new_resource.port aem_version = new_resource.aem_version - #By default, AEM will put groups in a folder named for their first letter (prior to AEM 6.x) + # By default, AEM will put groups in a folder named for their first letter (prior to AEM 6.x) path = new_resource.path || "/home/groups/#{group[0]}" - [ group, admin_user, admin_password, port, aem_version, path ] + [group, admin_user, admin_password, port, aem_version, path] end def curl(url, user, password) diff --git a/providers/replicator.rb b/providers/replicator.rb index 100373f..c15e85c 100644 --- a/providers/replicator.rb +++ b/providers/replicator.rb @@ -157,7 +157,7 @@ counter = 0 agents = [] - hosts.each do |h| + hosts.each do |_h| instance = counter > 0 ? counter.to_s : '' agents << "#{agent}#{instance}" counter += 1 diff --git a/providers/user.rb b/providers/user.rb index 9ad1319..7b24673 100644 --- a/providers/user.rb +++ b/providers/user.rb @@ -131,5 +131,4 @@ def get_usr_path(port, user, admin_user, admin_password) end end end - end diff --git a/resources/group.rb b/resources/group.rb index cf82302..01526cf 100644 --- a/resources/group.rb +++ b/resources/group.rb @@ -16,10 +16,10 @@ actions :add, :remove, :add_user, :remove_user -attribute :group, :kind_of => String, :name_attribute => true -attribute :admin_user, :kind_of => String, :default => nil -attribute :admin_password, :kind_of => String, :default => nil -attribute :port, :kind_of => String, :default => nil -attribute :aem_version, :kind_of => String, :default => node[:aem][:version] -attribute :path, :kind_of => String, :default => nil # the path to the group in AEM -attribute :user, :kind_of => String, :default => nil +attribute :group, kind_of: String, name_attribute: true +attribute :admin_user, kind_of: String, default: nil +attribute :admin_password, kind_of: String, default: nil +attribute :port, kind_of: String, default: nil +attribute :aem_version, kind_of: String, default: node[:aem][:version] +attribute :path, kind_of: String, default: nil # the path to the group in AEM +attribute :user, kind_of: String, default: nil