Class: IronWorkerNG::Code::Container::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/iron_worker_ng/code/container/base.rb

Direct Known Subclasses

Dir, Zip

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



10
11
12
# File 'lib/iron_worker_ng/code/container/base.rb', line 10

def initialize
  @name = ::Dir.tmpdir + '/' + ::Dir::Tmpname.make_tmpname('iron-worker-ng-', 'container')
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/iron_worker_ng/code/container/base.rb', line 8

def name
  @name
end

Instance Method Details

#add(dest, src) ⇒ Object



20
21
# File 'lib/iron_worker_ng/code/container/base.rb', line 20

def add(dest, src)
end

#clear_dest(dest) ⇒ Object



14
15
16
17
18
# File 'lib/iron_worker_ng/code/container/base.rb', line 14

def clear_dest(dest)
  dest = Pathname.new(dest).cleanpath.to_s unless dest.empty?

  dest
end

#closeObject



29
30
# File 'lib/iron_worker_ng/code/container/base.rb', line 29

def close
end

#commitObject



26
27
# File 'lib/iron_worker_ng/code/container/base.rb', line 26

def commit
end

#get_output_stream(dest, &block) ⇒ Object



23
24
# File 'lib/iron_worker_ng/code/container/base.rb', line 23

def get_output_stream(dest, &block)
end