Sha256: 7885ec204437a6415f990152f0123b493a5feea1c7262c5966df72e16f56a47b

Contents?: true

Size: 287 Bytes

Versions: 1

Compression:

Stored size: 287 Bytes

Contents

module Alf
  module Shell
    class Exec < Shell::Command()

      def execute(args)
        cmd = if f = args.first
          Path(f).read
        else
          $stdin.read
        end
        connection.query(cmd)
      end

    end # class Exec
  end # module Shell
end # module Alf

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alf-shell-0.14.0 lib/alf/shell/command/exec.rb