lib/erb_asterisk.rb in erb_asterisk-0.0.18 vs lib/erb_asterisk.rb in erb_asterisk-0.0.19

- old
+ new

@@ -48,12 +48,12 @@ @user_templates = File.expand_path("#{user_path}/templates") end def asterisk_root(opts) if opts.arguments.any? - custom_root = File.expand_path("#{opts.arguments.first}/") + custom_root = File.expand_path(opts.arguments.first) Dir.chdir(custom_root) - return custom_root + return "#{custom_root}/" end return './' if File.exist?(ERB_ASTERISK_CONF) return ERB_ASTERISK_DIR if Dir.exist?(ERB_ASTERISK_DIR) raise 'Asterisk configuration not found' end