Sha256: 42c9540066347badcda585d25393dbc292bef9ad7b7735c6b0480c2d27fc42c3

Contents?: true

Size: 197 Bytes

Versions: 55

Compression:

Stored size: 197 Bytes

Contents

namespace :http do
  desc "Starts a simple HTTP server in port 8000:  rake http:s [folder]"
  task :s do
    folder = ARGV[1] ? ARGV[1] : '.'
    sh "ruby -run -e httpd #{folder} -p 8000"
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
prun-ops-0.0.16 lib/tasks/http.rake
prun-ops-0.0.15 lib/tasks/http.rake
prun-ops-0.0.14 lib/tasks/http.rake
prun-ops-0.0.13 lib/tasks/http.rake
prun-ops-0.0.12 lib/tasks/http.rake
prun-ops-0.0.11 lib/tasks/http.rake
prun-ops-0.0.10 lib/tasks/http.rake
prun-ops-0.0.9 lib/tasks/http.rake
prun-ops-0.0.8 lib/tasks/http.rake
prun-ops-0.0.7 lib/tasks/http.rake
prun-ops-0.0.6 lib/tasks/http.rake
prun-ops-0.0.5 lib/tasks/http.rake
prun-ops-0.0.4 lib/tasks/http.rake
prun-ops-0.0.3 lib/tasks/http.rake
prun-ops-0.0.2 lib/tasks/http.rake