orassh 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: bc22c36b596e037cff99cc85054cf9cb8694793d3b563c20f91cbdbbb8e29bd4
4
- data.tar.gz: 4c2a36477e77ebf44dc50e34cde67b1deb9d50da9f78fef2d7220e22f3ea3f1d
3
+ metadata.gz: 58c0d091ea59340263e2cb950474a805e2b3155eedf3b7a59f888a97749e90bb
4
+ data.tar.gz: 680a205047ab9656369793491dcc2d205be25060436de0544ac2a108365efb2f
5
5
  SHA512:
6
- metadata.gz: 9b88511c213548620a1a11aef6bdd56db5c7fd711307ca52caa83a2a95e03309095b9d1665cd8ffcae56353e713cea202c4dc479882d96e3936fce3721447854
7
- data.tar.gz: dcca781e04701937e1e00b7b5694f1318b8b07d49fd451f76968d48acb16d67d629108e34391990eebea781118180f06e29605afccd9850c4a7a59c2cd951532
6
+ metadata.gz: 26208d0b5fbd3cdb5e51ef6d5457d4a828361e04ea28193539c6b44b05b997855b0a8ccc04fd1bca2ea27f5b0cd90a6a2239f0b3c8e468952bc0a80d6fc6e248
7
+ data.tar.gz: 99b409ddd68b679fec3f5b905fc07c8024978ec8e5227ce3245d8df9e27c7388c23e31405d0a4fe53587a23ac78230ab32257f2bb39fd761cdebdccd6acf565e
data/README.md CHANGED
@@ -25,7 +25,25 @@ Or install it yourself as:
25
25
 
26
26
  ## Usage
27
27
 
28
- TODO: Write usage instructions here
28
+ Default configuration file is at `~/.config/orassh.yml`.
29
+ On the server, make sure to get tunnels set up in the ngrok config file
30
+ (default at `~/.config/ngrok/ngrok.yml`).
31
+
32
+ Use command `orassh -h` to see help for the `orassh` command.
33
+
34
+ Typical use: configure the tunnel with TCP protocol named as `ssh` in both
35
+ Orassh config file and ngrok config file,
36
+ and then run
37
+ ```shell
38
+ orassh --server ssh
39
+ ```
40
+ to start the ngrok tunnel.
41
+ Then, in other computers, you can SSH to the server using
42
+ ```shell
43
+ orassh ssh
44
+ ```
45
+ as long as the server and the client have the same Gist ID
46
+ configured in their Orassh config files.
29
47
 
30
48
  ## Development
31
49
 
@@ -35,7 +53,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
35
53
 
36
54
  ## Contributing
37
55
 
38
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/orassh. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/orassh/blob/master/CODE_OF_CONDUCT.md).
56
+ Bug reports and pull requests are welcome on GitHub at https://github.com/UlyssesZh/orassh. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/orassh/blob/master/CODE_OF_CONDUCT.md).
39
57
 
40
58
  ## License
41
59
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orassh
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/orassh.rb CHANGED
@@ -224,12 +224,12 @@ class << Orassh::Client = Module.new
224
224
  raise Orassh::CommandNotSpecified, "Command is not specified for tunnel '#{tunnel}'"
225
225
  end
226
226
  command.gsub! '{NAME}', tunnel
227
- command.gsub! '{ID}', processed_tunnel['id']
228
- command.gsub! '{PROTO}', processed_tunnel['proto']
229
- command.gsub! '{DOMAIN}', processed_tunnel['domain']
230
- command.gsub! '{PORT}', processed_tunnel['port']
231
- command.gsub! '{ADDR}', processed_tunnel['addr']
232
- command.gsub! '{URL}', processed_tunnel['url']
227
+ command.gsub! '{ID}', processed_tunnel['id'].to_s
228
+ command.gsub! '{PROTO}', processed_tunnel['proto'].to_s
229
+ command.gsub! '{DOMAIN}', processed_tunnel['domain'].to_s
230
+ command.gsub! '{PORT}', processed_tunnel['port'].to_s
231
+ command.gsub! '{ADDR}', processed_tunnel['addr'].to_s
232
+ command.gsub! '{URL}', processed_tunnel['url'].to_s
233
233
  command.gsub! '\}', '}'
234
234
  system command
235
235
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orassh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ulysses Zhan
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-07 00:00:00.000000000 Z
11
+ date: 2022-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gist
@@ -66,7 +66,7 @@ licenses:
66
66
  metadata:
67
67
  homepage_uri: https://github.com/UlyssesZh/orassh
68
68
  source_code_uri: https://github.com/UlyssesZh/orassh
69
- post_install_message:
69
+ post_install_message:
70
70
  rdoc_options: []
71
71
  require_paths:
72
72
  - lib
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubygems_version: 3.3.7
85
- signing_key:
85
+ signing_key:
86
86
  specification_version: 4
87
87
  summary: Uses GitHub Gist and ngrok to help you connect to your remote computer with
88
88
  SSH.