Module: Librarian::Puppet
- Included in:
- Puppet
- Defined in:
- lib/librarian/puppet.rb,
lib/librarian/puppet/cli.rb,
lib/librarian/puppet/dsl.rb,
lib/librarian/puppet/util.rb,
lib/librarian/puppet/version.rb,
lib/librarian/puppet/lockfile.rb,
lib/librarian/puppet/resolver.rb,
lib/librarian/puppet/extension.rb,
lib/librarian/puppet/dependency.rb,
lib/librarian/puppet/source/git.rb,
lib/librarian/puppet/environment.rb,
lib/librarian/puppet/source/path.rb,
lib/librarian/puppet/source/repo.rb,
lib/librarian/puppet/source/forge.rb,
lib/librarian/puppet/source/local.rb,
lib/librarian/puppet/action/install.rb,
lib/librarian/puppet/action/resolve.rb,
lib/librarian/puppet/source/forge/repo.rb,
lib/librarian/puppet/source/forge/repo_v1.rb,
lib/librarian/puppet/source/forge/repo_v3.rb,
lib/librarian/puppet/source/githubtarball.rb,
lib/librarian/puppet/source/githubtarball/repo.rb
Defined Under Namespace
Modules: Action, Source, Util Classes: Cli, Dependency, Dsl, Environment, Lockfile, Resolver
Constant Summary collapse
- VERSION =
"3.0.1"
- @@puppet_version =
"7.14.0"
Instance Method Summary collapse
-
#puppet_gem_version ⇒ Object
Puppet version x.y.z translated as a Gem version.
-
#puppet_version ⇒ Object
Output of puppet –version, typically x.y.z For Puppet Enterprise it contains the PE version too, ie.
Instance Method Details
#puppet_gem_version ⇒ Object
Puppet version x.y.z translated as a Gem version
20 21 22 |
# File 'lib/librarian/puppet.rb', line 20 def puppet_gem_version Gem::Version.create(puppet_version.split(' ').first.strip.gsub('-', '.')) end |
#puppet_version ⇒ Object
Output of puppet –version, typically x.y.z For Puppet Enterprise it contains the PE version too, ie. 3.4.3 (Puppet Enterprise 3.2.1)
15 16 17 |
# File 'lib/librarian/puppet.rb', line 15 def puppet_version return @@puppet_version unless @@puppet_version.nil? end |