lib/tap/tasks/dump/yaml.rb in tap-tasks-0.1.0 vs lib/tap/tasks/dump/yaml.rb in tap-tasks-0.2.0
- old
+ new
@@ -1,20 +1,19 @@
-require 'tap/dump'
+require 'tap/tasks/dump'
module Tap
module Tasks
- module Dump
+ class Dump < Tap::Task
- # :startdoc::manifest dumps data as YAML
+ # :startdoc::task dumps data as YAML
#
- # Dumps workflow results to a file or IO as YAML. See the default tap
- # dump task for more details.
+ # Dumps workflow results to a file or IO as YAML.
#
# % tap run -- load/yaml "{key: value}" --: dump/yaml
- # ---
+ # ---
# key: value
#
- class Yaml < Tap::Dump
+ class Yaml < Dump
# Dumps the object to io as YAML.
def dump(obj, io)
YAML.dump(obj, io)
end
\ No newline at end of file