Sha256: 19c35f8272fcccda05795df26da75ee08874ed40e9be68199e0ad8b7fde5ff11

Contents?: true

Size: 435 Bytes

Versions: 6

Compression:

Stored size: 435 Bytes

Contents

LuxCli.class_eval do
  desc :get, 'Get single page by path "lux get /login"'
  method_option :hide, desc: 'Hide body', type: :boolean, aliases: "-h", default: false
  def get path
    require './config/application'

    data = Lux.app.render(path)
    data[:body] = 'BODY lenght: %s kB' % (data[:body].length.to_f/1024).round(1) if options[:hide]
    ap data
    puts '-h true if you want to hide body' unless options[:hide]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lux-fw-0.5.37 ./bin/cli/get.rb
lux-fw-0.5.36 ./bin/cli/get.rb
lux-fw-0.5.35 ./bin/cli/get.rb
lux-fw-0.5.34 ./bin/cli/get.rb
lux-fw-0.5.33 ./bin/cli/get.rb
lux-fw-0.5.32 ./bin/cli/get.rb