Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ran rubocop linter #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions providers/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion providers/replicator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion providers/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,4 @@ def get_usr_path(port, user, admin_user, admin_password)
end
end
end

end
14 changes: 7 additions & 7 deletions resources/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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