Class: Tara::Executable

Inherits:
Object
  • Object
show all
Defined in:
lib/tara/executable.rb

Instance Method Summary collapse

Constructor Details

#initialize(dirpath, name) ⇒ Executable

Returns a new instance of Executable.



6
7
8
9
# File 'lib/tara/executable.rb', line 6

def initialize(dirpath, name)
  @dirpath = dirpath
  @name = name
end

Instance Method Details

#write(io) ⇒ Object



11
12
13
# File 'lib/tara/executable.rb', line 11

def write(io)
  io.puts(script_template)
end