Skip to content

Commit

Permalink
add description to hosted_repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Zabel committed Jan 2, 2015
1 parent 83c1d37 commit 0478a1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion providers/hosted_repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def load_current_resource

action :create do
unless repository_exists?(@current_resource.name)
Chef::Nexus.nexus(node).create_repository(new_resource.name, false, nil, nil, new_resource.policy, nil, nil, nil)
Chef::Nexus.nexus(node).create_repository(new_resource.description, false, nil, new_resource.name, new_resource.policy, nil, nil, nil)
set_publisher if new_resource.publisher
new_resource.updated_by_last_action(true)
end
Expand Down
1 change: 1 addition & 0 deletions resources/hosted_repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
default_action :create

attribute :name, :kind_of => String, :name_attribute => true
attribute :description, :kind_of => String, :default => nil
attribute :publisher, :kind_of => [TrueClass, FalseClass], :default => nil
attribute :policy, :kind_of => String, :default => nil

0 comments on commit 0478a1d

Please sign in to comment.