camtasy 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2eeb8b9e9939c5c08377fe6c9f0772ec68564164
4
- data.tar.gz: dd70b87cf92d971ab74f783ab5cf8ad315e80269
3
+ metadata.gz: 8791c06a6385a0a4e8c6c2c25a06c6b3e3c8b1ac
4
+ data.tar.gz: 1c55d28ea59182d2b80486fbb2ea4bc8102fa597
5
5
  SHA512:
6
- metadata.gz: 7a34c3ca0740a65401d6a69b75b8aa08a0392ec4f7a34577dbd84ed1c667518cd760832bfe7d9545b56399b7a71bbd4cc833dee9ec9e6c62d831c287d6de4f99
7
- data.tar.gz: 2e91820650a139f34ccd3bf9f44e2e0142d072d8752a635bc8810131266a29462af04ab8a1e90aad0b55a841c9d7d74cd0470e7c2277cfa0b404fd0846075de3
6
+ metadata.gz: 43d57d7f690efb41ba3d7bba76c248e17da88cd47ad33308c08902f816d8ff4d76cb4ddaf40245af84a5002f94e27ab3bf5a9619a2dfc5dfa7f8bcee21496827
7
+ data.tar.gz: 6d05c5c2a70a8434aed0d90efe8afb3936a9c415c900d232c0f719314732a592ba531e513ae52967b828516c66bc4c25691d6fc10d5dbd18bcebef6c24850a52
@@ -1,22 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
-
3
2
  require 'camtasy'
4
- require "thor"
5
-
6
- module Camtasy
7
- class CLI < Thor
8
- DEFAULT_URI='druby://localhost:8787'
9
-
10
- desc 'server', 'starts a server.'
11
- def server
12
- PhotoServer.new.run(DEFAULT_URI)
13
- end
14
-
15
- desc 'client', 'connect to a server'
16
- def client
17
- Client.new(DEFAULT_URI).run
18
- end
19
- end
20
- end
3
+ require "camtasy/cli"
21
4
 
22
5
  Camtasy::CLI.start
@@ -0,0 +1,19 @@
1
+ require "thor"
2
+
3
+ module Camtasy
4
+ class CLI < Thor
5
+ DEFAULT_URI='druby://localhost:8787'
6
+
7
+ desc 'server', 'starts a server.'
8
+ method_options uri: :string
9
+ def server
10
+ PhotoServer.new.run(options[:uri] || DEFAULT_URI)
11
+ end
12
+
13
+ desc 'client', 'connect to a server'
14
+ method_options uri: :string
15
+ def client
16
+ Client.new(options[:uri] || DEFAULT_URI).run
17
+ end
18
+ end
19
+ end
@@ -1,3 +1,3 @@
1
1
  module Camtasy
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camtasy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mo khan
@@ -98,6 +98,7 @@ files:
98
98
  - bin/camtasy
99
99
  - camtasy.gemspec
100
100
  - lib/camtasy.rb
101
+ - lib/camtasy/cli.rb
101
102
  - lib/camtasy/client.rb
102
103
  - lib/camtasy/preview.rb
103
104
  - lib/camtasy/server.rb