capistrano_database_yml 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/capistrano_database_yml.gemspec +1 -1
- data/lib/database_yml/capistrano.rb +7 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.3
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{capistrano_database_yml}
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael Franz Aigner", "Simone Carletti"]
|
@@ -61,7 +61,13 @@ EOF
|
|
61
61
|
|
62
62
|
run "mkdir -p #{shared_path}/db"
|
63
63
|
run "mkdir -p #{shared_path}/config"
|
64
|
-
put config.result(binding), "#{shared_path}/config/database.yml"
|
64
|
+
put config.result(binding), "#{shared_path}/config/database.yml.example"
|
65
|
+
|
66
|
+
run <<-CMD
|
67
|
+
test -e #{shared_path}/config/database.yml || {
|
68
|
+
cp -f #{shared_path}/config/database.yml.example #{shared_path}/config/database.yml &&
|
69
|
+
chmod 600 #{shared_path}/config/database.yml; }
|
70
|
+
CMD
|
65
71
|
end
|
66
72
|
|
67
73
|
desc <<-DESC
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano_database_yml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 3
|
10
|
+
version: 1.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Franz Aigner
|