Top Level Namespace

Defined Under Namespace

Modules: DOT, FFI, Generators, HieraPuppet, OpenSSL, Process, Puppet, PuppetX, RDoc Classes: Dir, File, Formatter, Hiera, Object, TypeDoc, UserAttr, WindowsDaemon

Constant Summary collapse

SEPARATOR =
[Regexp.escape(File::SEPARATOR.to_s), Regexp.escape(File::ALT_SEPARATOR.to_s)].join

Instance Method Summary collapse

Instance Method Details

#_(msg) ⇒ Object

These stub the translation methods normally brought in by FastGettext. Used when Gettext could not be properly initialized.



6
7
8
# File 'lib/puppet/gettext/stubs.rb', line 6

def _(msg)
  msg
end

#dateObject

lib/trollop.rb – trollop command-line processing library

Author

William Morgan (mailto: [email protected])

Copyright

Copyright 2007 William Morgan

License

the same terms as ruby itself

2012-03: small changes made by cprice ([email protected]);

patch submitted for upstream consideration:
https://gitorious.org/trollop/mainline/merge_requests/9

2012-08: namespace changes made by Jeff McCune ([email protected])

moved Trollop into Puppet::Util::CommandLine to prevent monkey
patching the upstream trollop library if also loaded.


15
# File 'lib/puppet/util/command_line/trollop.rb', line 15

require 'date'

#n_(*args, &block) ⇒ Object



10
11
12
13
# File 'lib/puppet/gettext/stubs.rb', line 10

def n_(*args, &block)
  plural = args[2] == 1 ? args[0] : args[1]
  block ? block.call : plural
end

#post_compileObject

Since:

  • 3.4.0



# File 'lib/puppet/parameter.rb', line 579