From 0478a1d33ed4e3d5fa0e9aa50992d42f8b1ec17f Mon Sep 17 00:00:00 2001 From: Daniel Zabel Date: Tue, 30 Dec 2014 20:16:19 +0100 Subject: [PATCH] add description to hosted_repository --- providers/hosted_repository.rb | 2 +- resources/hosted_repository.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/providers/hosted_repository.rb b/providers/hosted_repository.rb index cf67ffd..694d5ea 100644 --- a/providers/hosted_repository.rb +++ b/providers/hosted_repository.rb @@ -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 diff --git a/resources/hosted_repository.rb b/resources/hosted_repository.rb index 8a42da4..8f1b288 100644 --- a/resources/hosted_repository.rb +++ b/resources/hosted_repository.rb @@ -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