Module: Revamp
- Defined in:
- lib/revamp.rb,
lib/revamp/version.rb
Overview
Top level module for Revamp
Defined Under Namespace
Modules: Filter, Mapper, Model, Parser, Persister Classes: Application, CLI
Constant Summary collapse
- VERSION =
Version for Herald
'1.1.1'
- LICENSE =
Lincense for Herald
'Apache-2.0'
- NAME =
Project name
'Revamp'
- PACKAGE =
Package (gem) for Herald
'revamp'
- SUMMARY =
A summary info
'Converts puppet module file to valid RPM or DEB package'
- HOMEPAGE =
A homepage for Herald
'https://github.com/coi-gov-pl/gem-revamp'
- DESCRIPTION =
A description info
"This module can convert standard puppet module file in form of tarball to\nvalid RPM or DEB package with all dependencies as references to other\nsystem packages. The dependencies can be packaged inside the final system\npackage or just referenced as dependencies.\n"
Class Attribute Summary collapse
-
.logger ⇒ Logger
readonly
Logger for CLI interface.
Class Method Summary collapse
-
.bug(ex) ⇒ Hash
Reports a bug in desired format.
Class Attribute Details
.logger ⇒ Logger (readonly)
Logger for CLI interface
17 18 19 |
# File 'lib/revamp.rb', line 17 def logger @logger end |
Class Method Details
.bug(ex) ⇒ Hash
Reports a bug in desired format
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/revamp.rb', line 23 def bug(ex) file = Tempfile.new(['revamp-bug', '.log']) filepath = file.path file.close file.unlink = "v#{Revamp::VERSION} #{ex.class}: #{ex.message}" contents = + "\n\n" + ex.backtrace.join("\n") + "\n" File.write(filepath, contents) bugo = { message: , homepage: Revamp::HOMEPAGE, bugfile: filepath, help: "Please report this bug to #{Revamp::HOMEPAGE} by passing contents of bug file: #{filepath}" } bugo end |