19 lines
No EOL
417 B
Ruby
Executable file
19 lines
No EOL
417 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
|
|
require 'optparse'
|
|
|
|
# Require Middleman
|
|
require File.join(File.dirname(__FILE__), '..', 'lib', 'middleman')
|
|
|
|
class Middleman::Base
|
|
set :root, Dir.pwd
|
|
|
|
OptionParser.new { |op|
|
|
op.on('-e env') { |val| set :environment, val.to_sym }
|
|
op.on('-s server') { |val| set :server, val }
|
|
op.on('-p port') { |val| set :port, val.to_i }
|
|
}.parse!(ARGV.dup)
|
|
|
|
# Start Middleman
|
|
run!
|
|
end |