Module: Skab::Output
- Defined in:
- lib/skab/output.rb,
lib/skab/output/summary.rb,
lib/skab/output/differential.rb,
lib/skab/output/distribution.rb
Defined Under Namespace
Classes: Differential, Distribution, Summary
Class Method Summary
collapse
Class Method Details
.from_name(name) ⇒ Object
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/skab/output.rb', line 7
def self.from_name(name)
case name
when 'differential'
Differential
when 'distribution'
Distribution
when 'summary'
Summary
end
end
|
.help ⇒ Object
22
23
24
25
26
27
|
# File 'lib/skab/output.rb', line 22
def self.help
<<-HELP
The following outputs are available: #{output_names.join(', ')}
\tTry `skab help output [output] to find out more about a given output
HELP
end
|
.output_names ⇒ Object
18
19
20
|
# File 'lib/skab/output.rb', line 18
def self.output_names
['distribution', 'differential', 'summary']
end
|