class Rbish::Command

Public Class Methods

new(fd, config) click to toggle source
# File lib/rbish/command.rb, line 6
def initialize(fd, config)
  @fd = fd
  @config = config
end

Public Instance Methods

run() click to toggle source
# File lib/rbish/command.rb, line 11
def run
  template = Tilt::ERBTemplate.new { @fd.read }
  ::Rbish::Shell.run(template.render)
end