Sha256: 40ae702914b769019f8703419e17fcc01603cb16ff69277e080ea4e9f636f54c
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 Bytes
Contents
require 'thor' require 'shuck/server' module Shuck class CLI < Thor default_task("server") desc "server", "Run a server" method_option :root, :type => :string, :aliases => '-r',:required => true method_option :port, :type => :numeric, :aliases => '-p', :required => true def server root = File.expand_path(options[:root]) puts "Loading Shuck with #{root} on port #{options[:port]}" server = Shuck::Server.new(options[:port],options[:root]) server.serve end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shuck-0.0.1 | lib/shuck/cli.rb |