terminalwire 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/terminalwire +9 -2
- data/lib/terminalwire/client/entitlement.rb +2 -0
- data/lib/terminalwire/client/exec.rb +1 -1
- data/lib/terminalwire/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3966d8f8d821f901ef4d25e99354c41f9f3076e11bc48a540bcc658c35361ebd
|
4
|
+
data.tar.gz: 00d0db43c02f230b6446daac71dc7e4cfdf2d4691daa74221060a7230272dea3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94b404456c9393743d89bab399c43cb68ba6ad2f514697b4d43a49cff72f4afb0e819eb071185099f02d71eac375043fa3f79a7f821463881b14cf06a950076c
|
7
|
+
data.tar.gz: c79848bbc4b19d9021ebaa027689d97120b21a74b5100da23cd10ec2bce730bb413668ae8a3de0f3798ef0a205f5024357b64064659f1627282fecddbfd67058
|
data/exe/terminalwire
CHANGED
@@ -1,2 +1,9 @@
|
|
1
|
-
#!/usr/bin/env
|
2
|
-
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require_relative "../lib/terminalwire.rb"
|
3
|
+
|
4
|
+
begin
|
5
|
+
Terminalwire::Client.websocket(url: "wss://terminalwire.com/terminal")
|
6
|
+
rescue Terminalwire::Error => e
|
7
|
+
puts e.message
|
8
|
+
exit 1
|
9
|
+
end
|
@@ -9,7 +9,7 @@ module Terminalwire::Client
|
|
9
9
|
def initialize(path:, arguments:)
|
10
10
|
@arguments = arguments
|
11
11
|
@path = Pathname.new(path)
|
12
|
-
@configuration = YAML.
|
12
|
+
@configuration = YAML.safe_load_file(@path)
|
13
13
|
@url = URI(@configuration.fetch("url"))
|
14
14
|
rescue Errno::ENOENT => e
|
15
15
|
raise Terminalwire::Error, "File not found: #{@path}"
|
data/lib/terminalwire/version.rb
CHANGED