From: Ken Barber Date: Sun, 2 Jun 2013 17:37:24 +0000 (+0100) Subject: Merge branch 'template_deprecation_warnings' X-Git-Tag: 1.1.1~7 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=4f83e75083e39dd6f92694b2a322b422ca424c85;hp=e01bbb61b294be1358b147e8de4966d5f4c6efda;p=puppet-modules%2Fpuppetlabs-apt.git Merge branch 'template_deprecation_warnings' * template_deprecation_warnings: Update travis.yml to latest versions of puppet Remove deprecation warnings for pin.pref.erb as well add @ to variables in template --- diff --git a/.gitignore b/.gitignore index d0aec6d..b77434b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.swp pkg/ Gemfile.lock +spec/fixtures/manifests diff --git a/.travis.yml b/.travis.yml index 8f713e0..a19074d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,10 +10,13 @@ env: - PUPPET_GEM_VERSION="~> 2.7.0" - PUPPET_GEM_VERSION="~> 3.0.0" - PUPPET_GEM_VERSION="~> 3.1.0" + - PUPPET_GEM_VERSION="~> 3.2.0" matrix: - allow_failures: - - rvm: ruby-head exclude: + - rvm: ruby-head + env: PUPPET_GEM_VERSION="~> 3.0.0" + - rvm: ruby-head + env: PUPPET_GEM_VERSION="~> 3.1.0" - rvm: 1.9.3 env: PUPPET_GEM_VERSION="~> 2.7.0" - rvm: ruby-head diff --git a/spec/fixtures/manifests/site.pp b/spec/fixtures/manifests/site.pp deleted file mode 100644 index e69de29..0000000 diff --git a/templates/pin.pref.erb b/templates/pin.pref.erb index 74b9265..74df8b7 100644 --- a/templates/pin.pref.erb +++ b/templates/pin.pref.erb @@ -1,5 +1,5 @@ -# <%= name %> -Explanation: <%= explanation %> -Package: <%= packages %> -Pin: <%= pin %> -Pin-Priority: <%= priority %> +# <%= @name %> +Explanation: <%= @explanation %> +Package: <%= @packages %> +Pin: <%= @pin %> +Pin-Priority: <%= @priority %> diff --git a/templates/source.list.erb b/templates/source.list.erb index faa7e28..65764b2 100644 --- a/templates/source.list.erb +++ b/templates/source.list.erb @@ -1,5 +1,5 @@ -# <%= name %> -deb <%= location %> <%= release_real %> <%= repos %> -<%- if include_src then -%> -deb-src <%= location %> <%= release_real %> <%= repos %> +# <%= @name %> +deb <%= @location %> <%= @release_real %> <%= @repos %> +<%- if @include_src then -%> +deb-src <%= @location %> <%= @release_real %> <%= @repos %> <%- end -%>