vpsmatrix 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vpsmatrix/starter.rb +49 -2
- data/lib/vpsmatrix/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e3a92cf14f062f3af0cfb112ea357adf8b94d39
|
4
|
+
data.tar.gz: bd023c30146bfe978b128ecf3cf9725dddeba504
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b404e68637aef3d91618104d9143417cb4185fab8f711b308577c73c28e8f84d4114ab25d7369a4378b4e4474e296350c16c240305765fe205fe511467967c0a
|
7
|
+
data.tar.gz: d69ff479cd83213cabd627d6608ebc75673c1dc9502ed4b5a81926a808a7ce351ea84c08a023c2cf3404a448ecd6daca14cc596ae81b3352aa05c87f485368a5
|
data/lib/vpsmatrix/starter.rb
CHANGED
@@ -39,8 +39,9 @@ class Starter < Thor
|
|
39
39
|
Config.new.write 'api_key', api_key
|
40
40
|
end
|
41
41
|
|
42
|
-
|
43
|
-
|
42
|
+
register_email
|
43
|
+
#read_files
|
44
|
+
#stream_file
|
44
45
|
|
45
46
|
# https://api.vpsmatrix.net/uploads/get_new_files
|
46
47
|
|
@@ -135,5 +136,51 @@ class Starter < Thor
|
|
135
136
|
end
|
136
137
|
dirs_string
|
137
138
|
end
|
139
|
+
|
140
|
+
|
141
|
+
def register_email
|
142
|
+
puts 'Thank you very much for using vpsmatrix. You are awesome!
|
143
|
+
|
144
|
+
We are just a month in this world and still working on
|
145
|
+
full implementation of CLI functionality. We wish deployment to be the
|
146
|
+
easiest step in development for everybody.
|
147
|
+
'
|
148
|
+
puts
|
149
|
+
print 'Do you want to help us improve our solution [y/n] '
|
150
|
+
|
151
|
+
reply=$stdin.gets.chop
|
152
|
+
|
153
|
+
if reply.downcase == 'y'
|
154
|
+
|
155
|
+
puts 'At this point we would love to get your email address so we can kindly
|
156
|
+
inform you when we are ready to present working functionality. And we are
|
157
|
+
eager to hear how you feel ideal deployment should look like
|
158
|
+
at ideas@vpsmatrix.com !'
|
159
|
+
|
160
|
+
puts
|
161
|
+
print 'Your email: '
|
162
|
+
|
163
|
+
email = $stdin.gets.chop
|
164
|
+
|
165
|
+
uri = URI.parse("https://api.vpsmatrix.net/registration/gem")
|
166
|
+
Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
|
167
|
+
request = Net::HTTP::Post.new(uri)
|
168
|
+
request.set_form_data({"email" => email})
|
169
|
+
response = http.request(request)
|
170
|
+
puts response.body
|
171
|
+
end
|
172
|
+
|
173
|
+
|
174
|
+
puts 'Thank you very much. Speak to you soon!'
|
175
|
+
|
176
|
+
else
|
177
|
+
puts
|
178
|
+
puts 'Thank you very much. We hope we meet in future where we will be more ready to help you ;)'
|
179
|
+
end
|
180
|
+
puts
|
181
|
+
|
182
|
+
end
|
183
|
+
|
184
|
+
|
138
185
|
end
|
139
186
|
end
|
data/lib/vpsmatrix/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vpsmatrix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mousse
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
90
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.
|
91
|
+
rubygems_version: 2.4.5.1
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: Gem for easy deployment to VPS Matrix servers.
|