Module: Foreman::Export

### Home Classes Methods

### In Files

- lib/foreman/export.rb

### Namespace

- CLASS Foreman::Export::Base
- CLASS Foreman::Export::Bluepill
- CLASS Foreman::Export::Exception
- CLASS Foreman::Export::Inittab
- CLASS Foreman::Export::Launchd
- CLASS Foreman::Export::Runit
- CLASS Foreman::Export::Supervisord
- CLASS Foreman::Export::Upstart

### Methods

- ::error
- ::formatter

### Class/Module Index

Quicksearch

- Foreman
- Foreman::AppDoesNotExist
- Foreman::CLI
- Foreman::Distribution
- Foreman::Engine
- Foreman::Engine::CLI
- Foreman::Engine::CLI::Color
- Foreman::Export
- Foreman::Export::Base
- Foreman::Export::Bluepill
- Foreman::Export::Exception
- Foreman::Export::Inittab
- Foreman::Export::Launchd
- Foreman::Export::Runit
- Foreman::Export::Supervisord
- Foreman::Export::Upstart
- Foreman::Helpers
- Foreman::Process
- Foreman::Procfile

No matching classes.

# Foreman::Export

### Public Class Methods

error(message) click to toggle source

    # File lib/foreman/export.rb, line 22
    def self.error(message)
      raise Foreman::Export::Exception.new(message)
    end

formatter(format) click to toggle source

    # File lib/foreman/export.rb, line 10
    def self.formatter(format)
      begin
        require "foreman/export/#{ format.tr('-', '_') }"
        classy_format = classify(format)
        formatter     = constantize("Foreman::Export::#{ classy_format }")
      rescue NameError => ex
        error "Unknown export format: #{format} (no class Foreman::Export::#{ classy_format })."
      rescue LoadError => ex
        error "Unknown export format: #{format} (unable to load file 'foreman/export/#{ format.tr('-', '_') }')."
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.