Sha256: 7e30e951e22d678bfc46e3422efb24d35d9d13b9197600fd0ee92ae8ccd4ad07

Contents?: true

Size: 626 Bytes

Versions: 11

Compression:

Stored size: 626 Bytes

Contents

#!/bin/ruby

require_relative('../lib/ajax-cat.rb')

case ARGV.first
when "start"
  AjaxCat::Runner.new(8585)
when "-v", "--version"
  puts VERSION
  exit 0
when "-h", "--help"
	puts "no help yet, look at https://github.com/hypertornado/ajax-cat"
	exit 0
when "example"
	begin
		example = AjaxCat::Runner.example
		f = File.open("ajax-cat.ini.json", "w")
		f.write(example)
		f.close
	rescue
		puts "Can't create example ajax-cat configuration file in #{Dir.pwd}".red
		exit 1
	end
	puts "example ajax-cat configuration file created at #{Dir.pwd+'/ajax-cat.ini.json'}".green
	exit 0
else
  puts "Unknown command."
  exit 0
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ajax-cat-2.1.0 bin/ajax-cat
ajax-cat-2.0.5 bin/ajax-cat
ajax-cat-2.0.4 bin/ajax-cat
ajax-cat-2.0.3 bin/ajax-cat
ajax-cat-2.0.2 bin/ajax-cat
ajax-cat-2.0.1 bin/ajax-cat
ajax-cat-1.0.0 bin/ajax-cat
ajax-cat-0.5.0 bin/ajax-cat
ajax-cat-0.4.2 bin/ajax-cat
ajax-cat-0.4.1 bin/ajax-cat
ajax-cat-0.4.0 bin/ajax-cat