diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-15 04:36:19 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-15 04:36:19 -0500 |
commit | 381a9b85d4ea82c5792fcc75383b2d0d98b72100 (patch) | |
tree | 182f7421375f771c210405e8586674b2a9f31c06 /backends/gitmirrorbackend.rb | |
parent | 445d6d320e75917eb6678648b1571be97cf3dcd9 (diff) |
more
Diffstat (limited to 'backends/gitmirrorbackend.rb')
-rw-r--r-- | backends/gitmirrorbackend.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/backends/gitmirrorbackend.rb b/backends/gitmirrorbackend.rb deleted file mode 100644 index 25f7c3e..0000000 --- a/backends/gitmirrorbackend.rb +++ /dev/null @@ -1,30 +0,0 @@ -# coding: utf-8 - -require 'shellwords' - -class GitMirrorBackend - def repl(accountName) - @accountName = account_name - $stdin.each do |line| - args = line.shellsplit - out = self.send('cmd_'+args[0].gsub('-', '_'), *args[1..0]) - if out.is_a? String - puts out - elsif out.is_a? Array - out.each do |outline| - puts outline - end - elsif out.is_a? Hash - out.each do |k,v| - puts "#{k}=#{v}" - end - else - raise "I don't know what to do with output value: #{out}" - end - end - self.finish - end - def finish - # noop - end -end |