Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/fluent/lib/puppet/provider/package/fluent_gem.rb

Issue 29338665: Issue 3694 - Introduce module fluent (Closed)
Patch Set: Created March 18, 2016, 6:06 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | modules/fluent/lib/puppet/provider/package/td_agent_gem.rb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/fluent/lib/puppet/provider/package/fluent_gem.rb
diff --git a/modules/fluent/lib/puppet/provider/package/fluent_gem.rb b/modules/fluent/lib/puppet/provider/package/fluent_gem.rb
new file mode 100644
index 0000000000000000000000000000000000000000..ec78fbcc491b72bff9cc3b890ffd6e5a3a4e1c35
--- /dev/null
+++ b/modules/fluent/lib/puppet/provider/package/fluent_gem.rb
@@ -0,0 +1,17 @@
+require 'puppet/provider/package/gem'
+require 'puppet/type'
+
+# http://docs.puppetlabs.com/puppet/latest/reference/type.html#package-provider-gem
+Puppet::Type.type(:package).provide :fluent_gem, :parent => :gem do
+
+ # http://docs.fluentd.org/articles/plugin-management#fluent-gem
+ desc 'Ruby Gem support for Fluentd packages, via fluent-gem'
+ commands :gemcmd => 'fluent-gem'
+
+ # https://projects.puppetlabs.com/issues/19663
+ def execute(command, arguments = {:failonfail => true, :combine => true})
+ command.delete('--include-dependencies')
+ super
+ end
+
+end
« no previous file with comments | « no previous file | modules/fluent/lib/puppet/provider/package/td_agent_gem.rb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld