Sha256: d526ebfcfa49b4eae99f642ae8bb4adc08bd87e759300a103981f75755c07895

Contents?: true

Size: 417 Bytes

Versions: 13

Compression:

Stored size: 417 Bytes

Contents

#!/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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
middleman-0.9.17 bin/mm-server
middleman-0.9.16 bin/mm-server
middleman-0.9.15 bin/mm-server
middleman-0.9.14 bin/mm-server
middleman-0.9.13 bin/mm-server
middleman-0.9.12 bin/mm-server
middleman-0.9.11 bin/mm-server
middleman-0.9.10 bin/mm-server
middleman-0.9.9 bin/mm-server
middleman-0.9.8 bin/mm-server
middleman-0.9.7 bin/mm-server
middleman-0.9.6 bin/mm-server
middleman-0.9.5 bin/mm-server