From fde39da8aa611438da5dfccc3144b7b235cfda4b Mon Sep 17 00:00:00 2001 From: Michael Fellinger Date: Sun, 15 Jan 2012 22:54:30 +0100 Subject: [PATCH] add bin/import --- bin/import | 8 ++++++++ lib/fxc/import.rb | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100755 bin/import diff --git a/bin/import b/bin/import new file mode 100755 index 0000000..960b215 --- /dev/null +++ b/bin/import @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby + +require_relative '../lib/fxc/import' + +converter = FXC::Converter.new +converter.convert(:configuration) +converter.convert(:directory) +converter.convert(:dialplan) diff --git a/lib/fxc/import.rb b/lib/fxc/import.rb index bf6b005..2b33781 100644 --- a/lib/fxc/import.rb +++ b/lib/fxc/import.rb @@ -200,11 +200,3 @@ def read_directory(&block) end end end - - -if __FILE__ == $0 - converter = FXC::Converter.new - converter.convert(:configuration) - converter.convert(:directory) - converter.convert(:dialplan) -end