md-puppetdb-terminus 2.0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,31 @@
1
+ require 'semver'
2
+ require 'puppet/version'
3
+ require 'puppet/error'
4
+
5
+ module Puppet::Util::Puppetdb
6
+ # Global checks for version support and other validations before the terminus
7
+ # is used.
8
+ #
9
+ class GlobalCheck
10
+ # Validate that the support for the version of Puppet we are running on is
11
+ # still maintained.
12
+ #
13
+ # @param minimum [String] minimum version for operation
14
+ # @throws [Puppet::Error] raised if current version is unsupported
15
+ # @api private
16
+ def self.puppet_version_check(minimum)
17
+ minimum_version = ::SemVer.new(minimum)
18
+ puppet_version = ::SemVer.new(Puppet.version)
19
+ if (puppet_version <=> minimum_version) == -1 then
20
+ raise Puppet::Error, "You are attempting to use puppetdb-terminus on an unsupported version of Puppet (#{puppet_version}) the minimum supported version is #{minimum_version}"
21
+ end
22
+ end
23
+
24
+ # Run all checks
25
+ #
26
+ # @throws [Puppet::Error] raised for any validation errors
27
+ def self.run
28
+ self.puppet_version_check("3.5.1")
29
+ end
30
+ end
31
+ end
@@ -0,0 +1 @@
1
+ require 'puppetdb/terminus'
@@ -0,0 +1,6 @@
1
+ require "puppetdb/terminus/version"
2
+
3
+ module PuppetDB
4
+ module Terminus
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module PuppetDB
2
+ module Terminus
3
+ VERSION = "2.0.0.3"
4
+ end
5
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'puppetdb/terminus/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "md-puppetdb-terminus"
8
+ spec.version = PuppetDB::Terminus::VERSION
9
+ spec.authors = ["MoneyDesktop, Inc."]
10
+ spec.email = ["Devin Christensen"]
11
+ spec.summary = %q{PuppetDB Terminus}
12
+ spec.description = %q{PuppetDB Terminus}
13
+ spec.homepage = "https://github.com/devin-c/puppetdb-terminus"
14
+ spec.license = "Apache 2.0"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.6"
22
+ spec.add_development_dependency "rake"
23
+ end
metadata ADDED
@@ -0,0 +1,99 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: md-puppetdb-terminus
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - MoneyDesktop, Inc.
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-07-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: PuppetDB Terminus
42
+ email:
43
+ - Devin Christensen
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - Rakefile
53
+ - lib/md-puppetdb-terminus.rb
54
+ - lib/puppet/application/storeconfigs.rb
55
+ - lib/puppet/face/node/deactivate.rb
56
+ - lib/puppet/face/node/status.rb
57
+ - lib/puppet/face/storeconfigs.rb
58
+ - lib/puppet/indirector/catalog/puppetdb.rb
59
+ - lib/puppet/indirector/facts/puppetdb.rb
60
+ - lib/puppet/indirector/facts/puppetdb_apply.rb
61
+ - lib/puppet/indirector/node/puppetdb.rb
62
+ - lib/puppet/indirector/resource/puppetdb.rb
63
+ - lib/puppet/reports/puppetdb.rb
64
+ - lib/puppet/util/puppetdb.rb
65
+ - lib/puppet/util/puppetdb/blacklist.rb
66
+ - lib/puppet/util/puppetdb/char_encoding.rb
67
+ - lib/puppet/util/puppetdb/command.rb
68
+ - lib/puppet/util/puppetdb/command_names.rb
69
+ - lib/puppet/util/puppetdb/config.rb
70
+ - lib/puppet/util/puppetdb/global_check.rb
71
+ - lib/puppetdb-terminus.rb
72
+ - lib/puppetdb/terminus.rb
73
+ - lib/puppetdb/terminus/version.rb
74
+ - puppetdb-terminus.gemspec
75
+ homepage: https://github.com/devin-c/puppetdb-terminus
76
+ licenses:
77
+ - Apache 2.0
78
+ metadata: {}
79
+ post_install_message:
80
+ rdoc_options: []
81
+ require_paths:
82
+ - lib
83
+ required_ruby_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ requirements: []
94
+ rubyforge_project:
95
+ rubygems_version: 2.2.2
96
+ signing_key:
97
+ specification_version: 4
98
+ summary: PuppetDB Terminus
99
+ test_files: []