Class: Grably::TextJob

Inherits:
Object
  • Object
show all
Includes:
Job
Defined in:
lib/grably/jobs/text/text.rb

Overview

:nodoc:

Direct Known Subclasses

ErbJob, JsonJob, YamlJob

Instance Method Summary collapse

Methods included from Job

included, jobs

Instance Method Details

#buildObject



9
10
11
12
13
14
15
# File 'lib/grably/jobs/text/text.rb', line 9

def build
  out = job_dir(filename)
  File.open(out, 'w') do |f|
    dump(content, f)
  end
  out
end

#dump(content, io) ⇒ Object



17
18
19
# File 'lib/grably/jobs/text/text.rb', line 17

def dump(content, io)
  io << content
end