summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/model.rb2
-rw-r--r--lib/oxidized/model/outputs.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/oxidized/model/model.rb b/lib/oxidized/model/model.rb
index 3dd3f98..7258912 100644
--- a/lib/oxidized/model/model.rb
+++ b/lib/oxidized/model/model.rb
@@ -155,7 +155,7 @@ module Oxidized
if output.class != Oxidized::String
output = Oxidized::String.new output
end
- output.cmd = name
+ output.set_cmd(name)
output
end
diff --git a/lib/oxidized/model/outputs.rb b/lib/oxidized/model/outputs.rb
index 406f886..10015f8 100644
--- a/lib/oxidized/model/outputs.rb
+++ b/lib/oxidized/model/outputs.rb
@@ -3,7 +3,7 @@ module Oxidized
class Outputs
def to_cfg
- type_to_str('cfg')
+ type_to_str(nil)
end
def type_to_str want_type
@@ -23,7 +23,7 @@ module Oxidized
end
def types
- @outputs.map { |out| out.type }.uniq - ['cfg']
+ @outputs.map { |out| out.type }.uniq.compact
end
private