Skip to content

Commit

Permalink
Add repo_gpgcheck parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-thomson committed May 16, 2015
1 parent 9c36fc4 commit 7189338
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/repository.rb
Expand Up @@ -51,6 +51,7 @@
attribute :proxy_password, :kind_of => String, :regex => /.*/, :default => nil
attribute :username, :kind_of => String, :regex => /.*/, :default => nil
attribute :password, :kind_of => String, :regex => /.*/, :default => nil
attribute :repo_gpgcheck, :kind_of => [TrueClass, FalseClass], :default => nil
attribute :report_instanceid, :kind_of => [TrueClass, FalseClass], :default => nil
attribute :repositoryid, :kind_of => String, :regex => /.*/, :name_attribute => true
attribute :skip_if_unavailable, :kind_of => [TrueClass, FalseClass], :default => nil
Expand Down
1 change: 1 addition & 0 deletions spec/unit/test_repository_two_spec.rb
Expand Up @@ -38,6 +38,7 @@
proxy=http://hellothereiamproxystring.biz
proxy_username=kermit
proxy_password=dafrog
repo_gpgcheck=1
retries=10
skip_if_unavailable=1
sslcacert=/path/to/directory
Expand Down
3 changes: 3 additions & 0 deletions templates/default/repo.erb
Expand Up @@ -81,6 +81,9 @@ username=<%= @config.username %>
<% if @config.password %>
password=<%= @config.password %>
<% end %>
<% if @config.repo_gpgcheck %>
repo_gpgcheck=1
<% end %>
<% if @config.max_retries %>
retries=<%= @config.max_retries %>
<% end %>
Expand Down
Expand Up @@ -24,6 +24,7 @@
proxy 'http://hellothereiamproxystring.biz'
proxy_username 'kermit'
proxy_password 'dafrog'
repo_gpgcheck true
report_instanceid false
repositoryid 'unit-test-2'
skip_if_unavailable true
Expand Down

0 comments on commit 7189338

Please sign in to comment.