Sha256: b0d112fcd14451ebbe8d4c240b8dbfd4e4e7dfde2e26b741c2411d5dff12bf3c

Contents?: true

Size: 294 Bytes

Versions: 1

Compression:

Stored size: 294 Bytes

Contents

module RoCommands
  class Check < Base
    desc usage("see_schema"), ""

    def schema(*args)
      bash "cat db/schema.rb"
    end

    desc usage("post"), ""

    def table(*args)
      table_name = args.first.camelize
      Out.out(Object.const_get(:"#{table_name}").all)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rrjj-0.0.1 lib/ro_commands/check.rb