capistrano-froxlor 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGLOG.md +16 -0
- data/lib/capistrano/froxlor/version.rb +1 -1
- data/lib/capistrano/tasks/froxlor.cap +6 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c462d6354aba58a0b8f78149ca8800b81b117836
|
4
|
+
data.tar.gz: 9ca3bd9794a0d33870394f08373ab7b7e0a4439d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bf36818051efd79e1fbe58bbbf0ee5da36ece1b7fb2b8430fac11c176b79046db692541878abc75a84d15bbeca2365221016ab7d06341bcbd3ceb52fbd971d1
|
7
|
+
data.tar.gz: 20132be3c4f0226c07a610d309c41350c83e4fbfd45d79cb7ebe854061ad0c6d8abf7ea765b84392fec50d45f43bea1d89b66cafadfe121abfe395442476fab1
|
data/CHANGLOG.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# CHANGELOG
|
2
|
+
|
3
|
+
## capistrano-froxlor 0.0.4 2015-01-29
|
4
|
+
- fix when no db's exist
|
5
|
+
|
6
|
+
## capistrano-froxlor 0.0.3
|
7
|
+
- split mysql commands
|
8
|
+
|
9
|
+
## capistrano-froxlor 0.0.2
|
10
|
+
- add frx_ip_and_port
|
11
|
+
|
12
|
+
## capistrano-froxlor 0.0.1
|
13
|
+
- initial release
|
14
|
+
- adding/update subdomains
|
15
|
+
- add databases
|
16
|
+
|
@@ -26,8 +26,12 @@ namespace :froxlor do
|
|
26
26
|
|
27
27
|
#find latest db for user
|
28
28
|
dbs = capture "mysql -p#{dbpass} -u#{dbuser} -h#{dbhost} #{dbname} --execute='show databases;' | grep #{customer}| sort --version-sort | tail -n 1"
|
29
|
-
|
30
|
-
|
29
|
+
if dbs ==''
|
30
|
+
version = 1
|
31
|
+
else
|
32
|
+
version = dbs["#{customer}sql".length..dbs.length].strip.to_i
|
33
|
+
version += 1
|
34
|
+
end
|
31
35
|
|
32
36
|
new_db_name = "#{customer}sql#{version.to_s}"
|
33
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-froxlor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pim Snel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -47,6 +47,7 @@ extensions: []
|
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
49
|
- ".gitignore"
|
50
|
+
- CHANGLOG.md
|
50
51
|
- Gemfile
|
51
52
|
- LICENSE
|
52
53
|
- LICENSE.txt
|
@@ -76,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
77
|
version: '0'
|
77
78
|
requirements: []
|
78
79
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.4.
|
80
|
+
rubygems_version: 2.4.5
|
80
81
|
signing_key:
|
81
82
|
specification_version: 4
|
82
83
|
summary: Froxlor cli functionality for capistrano 3
|