~bkerensa/ubuntu/raring/puppet/new-upstream-release

« back to all changes in this revision

Viewing changes to lib/puppet/indirector/couch.rb

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-07-25 01:00:37 UTC
  • mfrom: (1.1.24 upstream) (3.1.25 sid)
  • Revision ID: james.westby@ubuntu.com-20110725010037-875vuxs10eboqgw3
Tags: 2.7.1-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - debian/puppetmaster-passenger.postinst: Use cacrl instead of hostcrl to
    set the location of the CRL in apache2 configuration. Fix apache2
    configuration on upgrade as well (LP: #641001)
  - move all puppet dependencies to puppet-common since all the code
    actually located in puppet-common.
  - move libagueas from a recommend to a dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
raise "Couch terminus not supported without couchrest gem" unless Puppet.features.couchdb?
2
 
 
3
 
require 'couchrest'
4
1
class Puppet::Indirector::Couch < Puppet::Indirector::Terminus
5
2
 
6
3
  # The CouchRest database instance. One database instance per Puppet runtime
13
10
    attributes_of get(request)
14
11
  end
15
12
 
 
13
  def initialize(*args)
 
14
    raise "Couch terminus not supported without couchrest gem" unless Puppet.features.couchdb?
 
15
    super
 
16
  end
 
17
 
16
18
  # Create or update the couchdb document with the request's data hash.
17
19
  #
18
20
  def save(request)