Skip to content

Commit

Permalink
Remove copy_runner code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Smith committed Jul 27, 2009
1 parent c815cc9 commit 16fd4b4
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions lib/erlbox/release.rb
Expand Up @@ -88,24 +88,6 @@ def build_node(nodefile)

end

def copy_runner(node_desc, reltools_dir)
## Get the hash of config values for the runner from descriptor
runner_opts = node_desc.fetch('runner', {});

runner_base_dir = runner_opts.fetch('base_dir', ".")
runner_etc_dir = runner_opts.fetch('etc_dir', "$RUNNER_BASE_DIR/etc")
runner_log_dir = runner_opts.fetch('log_dir', "$RUNNER_BASE_DIR/log")
runner_user = runner_opts.fetch('user', "")

## Load the template ERB and do the substitution
template = ERB.new(File.new(File.join(reltools_dir, "runner.erb")).read)
target = File.open(File.join(node_desc['release'], "bin", node_desc['release']), "w")
target.write(template.result(binding))

# Make sure the target is executable
target.chmod(0755)
end


def load_node_yaml(file)
# Load the YAML file
Expand Down

0 comments on commit 16fd4b4

Please sign in to comment.