From 879fcd991b1bb09abea5c2a1e7d4f12377c674ba Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 26 Jun 2014 13:06:39 -0300 Subject: [PATCH] stoa-plugin: use file relative path on install --- plugins/stoa/install.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/stoa/install.rb b/plugins/stoa/install.rb index 1fb70db..e741d84 100644 --- a/plugins/stoa/install.rb +++ b/plugins/stoa/install.rb @@ -1,5 +1,5 @@ require 'fileutils' -config_path = File.join('plugins', 'stoa', 'config.yml') -config_template = File.join('plugins', 'stoa', 'config.yml.dist') +config_path = File.join(File.dirname(__FILE__), 'config.yml') +config_template = File.join(File.dirname(__FILE__), 'config.yml.dist') FileUtils.cp(config_template, config_path) if !File.exist?(config_path) -- libgit2 0.21.2