Sha256: 69a46e1e79c020cbc24e4d512156247fbfafcc211d0756f1a3022fdfa5a45f55

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

#!/usr/bin/env ruby
require 'rack/blogengine/command_line_interface' 


command = ARGV[0].to_sym


target = ARGV[1]
target = "" if !ARGV[1]


cli = Rack::Blogengine::CommandLineInterface.new
methods = Rack::Blogengine::CommandLineInterface.instance_methods(false)

begin
  cli.send(command, target)
rescue TypeError
  puts "Available commands are #{methods}"
rescue NoMethodError
  puts "Available commands are #{methods}"
end
 

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rack-blogengine-0.0.7 bin/rack-blogengine
rack-blogengine-0.0.6 bin/rack-blogengine