yetty 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +0 -0
  3. data/bin/yetty +55 -0
  4. metadata +145 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d62402f9a45233864b3273f6cbcef84e06426857
4
+ data.tar.gz: 4efde678a3eec7a504d3ffbbce4f993c0f589d84
5
+ SHA512:
6
+ metadata.gz: 8ce82e5ceb45e840bb67573a7491feb292318651a2072a16bc29fd85359d4fb1a0b17ba2bf4dde0efb968406da396ee01d68c52b0dc3f30d37999e6172d82806
7
+ data.tar.gz: 24c52b6820665db19107c9f1767c76be40280fea1d82a17780c611c90d561159c65c27cb4326826209e1b94ac6fbc423d2aedf99cd7f2f2b4a043e7bdd0826a7
data/README.md ADDED
File without changes
data/bin/yetty ADDED
@@ -0,0 +1,55 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'slop'
4
+ require 'yetty'
5
+
6
+ begin
7
+ Slop.parse :help => true do
8
+ on :v, :version, 'Print version' do
9
+ puts "yetty - TTY utility - [Version: #{Yetty::VERSION}]"
10
+ end
11
+
12
+ command 'site' do
13
+ description 'Run yetty site'
14
+ on :c, :config=, 'JSON configuration file'
15
+ on :b, :bind=, 'IP to bind', :as => String, :default => '0.0.0.0'
16
+ on :p, :port=, 'Listen port', :as => Integer, :default => 9988
17
+ run do |opts, args|
18
+ Yetty::Site.new({:site => opts.to_hash}, args).execute!
19
+ end
20
+ end
21
+
22
+ command 'push' do
23
+ description 'Push JSON recording'
24
+ on :c, :config=, 'JSON configuration file'
25
+ on :p, :private, 'Not publicly listed'
26
+ on :o, :overwrite, 'Overwrite if already exists'
27
+ run do |opts, args|
28
+ Yetty::Push.new({:push => opts.to_hash}, args).execute!
29
+ end
30
+ end
31
+
32
+ command 'record' do
33
+ description 'Record terminal'
34
+ on :s, :sound, 'Record sound'
35
+ run do |opts, args|
36
+ Yetty::Record.new({:record => opts.to_hash}, args).execute!
37
+ end
38
+ end
39
+
40
+ command 'user' do
41
+ description 'View/set user information'
42
+ on :c, :config=, 'JSON configuration file'
43
+ run do |opts, args|
44
+ Yetty::UserInfo.new({:user => opts.to_hash}, args).execute!
45
+ end
46
+ end
47
+
48
+ end
49
+
50
+ rescue => e
51
+ if(ENV['DEBUG'])
52
+ $stderr.puts "#{e.class}: #{e}\n#{e.backtrace.join("\n")}"
53
+ end
54
+ exit -1
55
+ end
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yetty
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Chris Roberts
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-11-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: miasma
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sinatra
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: haml
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: slop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: cowsay
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: paint
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: shelr
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Simple web TTY
112
+ email: code@chrisroberts.org
113
+ executables:
114
+ - yetty
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - README.md
119
+ - bin/yetty
120
+ homepage: https://github.com/chrisroberts/yetty
121
+ licenses:
122
+ - Apache 2.0
123
+ metadata: {}
124
+ post_install_message:
125
+ rdoc_options: []
126
+ require_paths:
127
+ - lib
128
+ required_ruby_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ requirements: []
139
+ rubyforge_project:
140
+ rubygems_version: 2.2.2
141
+ signing_key:
142
+ specification_version: 4
143
+ summary: Simple TTY
144
+ test_files: []
145
+ has_rdoc: