Sha256: 39bf8514ca92ad59f4ed48a19e06f34370b7021bcc6e71adeba716424556d53d

Contents?: true

Size: 399 Bytes

Versions: 1

Compression:

Stored size: 399 Bytes

Contents

require "thor"

module Camtasy
  class CLI < Thor
    DEFAULT_URI='druby://localhost:8787'

    desc 'server', 'starts a server.'
    method_options uri: :string
    def server
      PhotoServer.new.run(options[:uri] || DEFAULT_URI)
    end

    desc 'client', 'connect to a server'
    method_options uri: :string
    def client
      Client.new(options[:uri] || DEFAULT_URI).run
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
camtasy-0.0.3 lib/camtasy/cli.rb