camtasy 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/camtasy +1 -18
- data/lib/camtasy/cli.rb +19 -0
- data/lib/camtasy/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8791c06a6385a0a4e8c6c2c25a06c6b3e3c8b1ac
|
4
|
+
data.tar.gz: 1c55d28ea59182d2b80486fbb2ea4bc8102fa597
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43d57d7f690efb41ba3d7bba76c248e17da88cd47ad33308c08902f816d8ff4d76cb4ddaf40245af84a5002f94e27ab3bf5a9619a2dfc5dfa7f8bcee21496827
|
7
|
+
data.tar.gz: 6d05c5c2a70a8434aed0d90efe8afb3936a9c415c900d232c0f719314732a592ba531e513ae52967b828516c66bc4c25691d6fc10d5dbd18bcebef6c24850a52
|
data/bin/camtasy
CHANGED
@@ -1,22 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
|
3
2
|
require 'camtasy'
|
4
|
-
require "
|
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
|
data/lib/camtasy/cli.rb
ADDED
@@ -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
|
data/lib/camtasy/version.rb
CHANGED
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.
|
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
|