tunnlr_connector 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -1
- data/lib/tunnlr/configurator.rb +3 -3
- metadata +3 -12
data/README
CHANGED
data/lib/tunnlr/configurator.rb
CHANGED
@@ -8,7 +8,7 @@ module Tunnlr
|
|
8
8
|
@not_configured=true
|
9
9
|
end
|
10
10
|
|
11
|
-
def fetch(username,password)
|
11
|
+
def fetch(subdomain,username,password)
|
12
12
|
url=URI.parse("http://#{subdomain}.tunnlr.com/configuration.yml")
|
13
13
|
req = Net::HTTP::Get.new(url.path)
|
14
14
|
req.basic_auth(username,password)
|
@@ -33,14 +33,14 @@ module Tunnlr
|
|
33
33
|
self.subdomain = @ui.ask("Subdomain (i.e. elevatedrails for elevatedrails.tunnlr.com): ")
|
34
34
|
self.email = @ui.ask("Email: ")
|
35
35
|
self.password = @ui.ask("Password: ") { |q| q.echo = false }
|
36
|
-
fetch(email,password)
|
36
|
+
fetch(subdomain,email,password)
|
37
37
|
end
|
38
38
|
|
39
39
|
def configure(path)
|
40
40
|
while not_configured
|
41
41
|
begin
|
42
42
|
get_credentials
|
43
|
-
fetch(
|
43
|
+
fetch(email,password)
|
44
44
|
add_password
|
45
45
|
write_config(path)
|
46
46
|
puts "Created configuration in #{path}"
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tunnlr_connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 19
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
8
|
+
- 3
|
9
|
+
version: 1.0.3
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Mike Mangino
|
@@ -22,11 +21,9 @@ dependencies:
|
|
22
21
|
name: net-ssh
|
23
22
|
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
24
|
requirements:
|
27
25
|
- - ">="
|
28
26
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 17
|
30
27
|
segments:
|
31
28
|
- 2
|
32
29
|
- 0
|
@@ -38,11 +35,9 @@ dependencies:
|
|
38
35
|
name: highline
|
39
36
|
prerelease: false
|
40
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
38
|
requirements:
|
43
39
|
- - ">="
|
44
40
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 3
|
46
41
|
segments:
|
47
42
|
- 1
|
48
43
|
- 5
|
@@ -81,27 +76,23 @@ rdoc_options: []
|
|
81
76
|
require_paths:
|
82
77
|
- lib
|
83
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
-
none: false
|
85
79
|
requirements:
|
86
80
|
- - ">="
|
87
81
|
- !ruby/object:Gem::Version
|
88
|
-
hash: 3
|
89
82
|
segments:
|
90
83
|
- 0
|
91
84
|
version: "0"
|
92
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
-
none: false
|
94
86
|
requirements:
|
95
87
|
- - ">="
|
96
88
|
- !ruby/object:Gem::Version
|
97
|
-
hash: 3
|
98
89
|
segments:
|
99
90
|
- 0
|
100
91
|
version: "0"
|
101
92
|
requirements: []
|
102
93
|
|
103
94
|
rubyforge_project: tunnlr_connector
|
104
|
-
rubygems_version: 1.3.
|
95
|
+
rubygems_version: 1.3.6
|
105
96
|
signing_key:
|
106
97
|
specification_version: 3
|
107
98
|
summary: Provide access to the tunnlr.com service
|