Sha256: 5bc8865d22718994f9b90071dc74c870d88ce08c728081d2957df3a08c592172

Contents?: true

Size: 295 Bytes

Versions: 2

Compression:

Stored size: 295 Bytes

Contents

#!/usr/bin/env ruby

ENV['LUX_VERBOSE'] = 'true'

require './config/application'

unless ARGV[0]
  Cli.die 'lux render GET /about'
end

path, http_method = ARGV.reverse
http_method ||= :get

data = Lux(path)

data[:body] = 'BODY lenght: %s kB' % (data[:body].length.to_f/1024).round(1)

ap data

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lux-fw-0.2.3 ./bin/cli/render
lux-fw-0.2.1 ./bin/cli/render