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.3.4 lib/tasks/http.rake
prun-ops-0.3.3 lib/tasks/http.rake
prun-ops-0.3.2 lib/tasks/http.rake
prun-ops-0.3.1 lib/tasks/http.rake
prun-ops-0.3.0 lib/tasks/http.rake
prun-ops-0.2.18 lib/tasks/http.rake
prun-ops-0.2.17 lib/tasks/http.rake
prun-ops-0.2.16 lib/tasks/http.rake
prun-ops-0.2.15 lib/tasks/http.rake
prun-ops-0.2.14 lib/tasks/http.rake
prun-ops-0.2.13 lib/tasks/http.rake
prun-ops-0.2.12 lib/tasks/http.rake
prun-ops-0.2.11 lib/tasks/http.rake
prun-ops-0.2.10 lib/tasks/http.rake
prun-ops-0.2.9 lib/tasks/http.rake
prun-ops-0.2.8 lib/tasks/http.rake
prun-ops-0.2.7 lib/tasks/http.rake
prun-ops-0.2.6 lib/tasks/http.rake
prun-ops-0.2.4 lib/tasks/http.rake
prun-ops-0.2.3 lib/tasks/http.rake