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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e3a92cf14f062f3af0cfb112ea357adf8b94d39
4
- data.tar.gz: bd023c30146bfe978b128ecf3cf9725dddeba504
3
+ metadata.gz: afded7fd885dfdc8278a33fc8de70910cc7d03ee
4
+ data.tar.gz: 380d795e363890d61db609b159e8c92074703321
5
5
  SHA512:
6
- metadata.gz: b404e68637aef3d91618104d9143417cb4185fab8f711b308577c73c28e8f84d4114ab25d7369a4378b4e4474e296350c16c240305765fe205fe511467967c0a
7
- data.tar.gz: d69ff479cd83213cabd627d6608ebc75673c1dc9502ed4b5a81926a808a7ce351ea84c08a023c2cf3404a448ecd6daca14cc596ae81b3352aa05c87f485368a5
6
+ metadata.gz: b92a221065b57ba25103400c4c3e70f51fcccf25f8ad03a665aee278a9e813d196a7f544f923ed331d05f698f5ea42a00ad01dfbc9af50860fb0406d4470ffd8
7
+ data.tar.gz: d0ee500900f8a37dff48ae8c44abb49ba8b922242673b43427de89285972c837bd3bc5628a291e681d9854762f933a086e12b001d2c5d8b4250e65ab084127c7
@@ -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 < Thor
8
- include Thor::Actions
6
+ class Starter
9
7
 
10
- desc 'demo deploy', 'run demo deploy to deploy app to VPS Matrix demo server'
11
- def demo task
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
@@ -1,3 +1,3 @@
1
1
  module Vpsmatrix
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/vpsmatrix.gemspec CHANGED
@@ -28,5 +28,4 @@ Gem::Specification.new do |spec|
28
28
 
29
29
  spec.add_development_dependency "bundler", "~> 1.11"
30
30
  spec.add_development_dependency "rake", "~> 10.0"
31
- spec.add_runtime_dependency "thor"
32
31
  end
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.3
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 00:00:00.000000000 Z
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