vpsmatrix 0.1.3 → 0.1.4
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 +19 -8
- data/lib/vpsmatrix/version.rb +1 -1
- data/vpsmatrix.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afded7fd885dfdc8278a33fc8de70910cc7d03ee
|
4
|
+
data.tar.gz: 380d795e363890d61db609b159e8c92074703321
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b92a221065b57ba25103400c4c3e70f51fcccf25f8ad03a665aee278a9e813d196a7f544f923ed331d05f698f5ea42a00ad01dfbc9af50860fb0406d4470ffd8
|
7
|
+
data.tar.gz: d0ee500900f8a37dff48ae8c44abb49ba8b922242673b43427de89285972c837bd3bc5628a291e681d9854762f933a086e12b001d2c5d8b4250e65ab084127c7
|
data/lib/vpsmatrix/starter.rb
CHANGED
@@ -1,14 +1,28 @@
|
|
1
|
-
require 'thor'
|
2
1
|
require 'digest'
|
3
2
|
require 'net/http'
|
4
3
|
require 'uri'
|
5
4
|
require_relative 'config'
|
6
5
|
|
7
|
-
class Starter
|
8
|
-
include Thor::Actions
|
6
|
+
class Starter
|
9
7
|
|
10
|
-
|
11
|
-
def
|
8
|
+
|
9
|
+
def self.start args
|
10
|
+
@environment = args.shift
|
11
|
+
@action = args.shift
|
12
|
+
|
13
|
+
environments = %w{demo prod}
|
14
|
+
fail "\nUnknown environment. Available environments: #{environments.join(', ')}" unless environments.include?(@environment)
|
15
|
+
actions = %w{deploy}
|
16
|
+
fail "\nUknown action. Available actions: #{actions.join(', ')}" unless actions.include?(@action)
|
17
|
+
Starter.new.send("#{@environment}_#{@action}")
|
18
|
+
end
|
19
|
+
|
20
|
+
#desc 'demo deploy', 'run demo deploy to deploy app to VPS Matrix demo server'
|
21
|
+
def prod_deploy
|
22
|
+
fail "Not implemented yet."
|
23
|
+
end
|
24
|
+
|
25
|
+
def demo_deploy
|
12
26
|
|
13
27
|
##
|
14
28
|
# check SSH key in .vpsmatrix dir, else generate new
|
@@ -61,7 +75,6 @@ class Starter < Thor
|
|
61
75
|
|
62
76
|
end
|
63
77
|
|
64
|
-
no_commands do
|
65
78
|
def read_files
|
66
79
|
|
67
80
|
puts 'Writing files to temporary file'
|
@@ -179,8 +192,6 @@ at ideas@vpsmatrix.com !'
|
|
179
192
|
end
|
180
193
|
puts
|
181
194
|
|
182
|
-
end
|
183
|
-
|
184
195
|
|
185
196
|
end
|
186
197
|
end
|
data/lib/vpsmatrix/version.rb
CHANGED
data/vpsmatrix.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mousse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: thor
|
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
41
|
description: Work in progress
|
56
42
|
email:
|
57
43
|
- mousse@timepress.cz
|