rapid-app 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rapid/app/settings.rb +4 -0
- data/lib/rapid/app/version.rb +1 -1
- data/spec/templates/config/deploy_spec.rb +24 -0
- data/templates/config/deploy.rb +3 -0
- metadata +3 -3
data/lib/rapid/app/settings.rb
CHANGED
data/lib/rapid/app/version.rb
CHANGED
@@ -105,6 +105,30 @@ describe "templates/config/deploy.rb" do
|
|
105
105
|
|
106
106
|
end
|
107
107
|
|
108
|
+
describe "database.sqlite3" do
|
109
|
+
|
110
|
+
it "should push true" do
|
111
|
+
push 'database.sqlite' => true
|
112
|
+
@result.should include %(/system/production.sqlite3)
|
113
|
+
end
|
114
|
+
|
115
|
+
it "should push false" do
|
116
|
+
push 'database.sqlite' => false
|
117
|
+
@result.should_not include %(/system/production.sqlite3)
|
118
|
+
end
|
119
|
+
|
120
|
+
it "should pull true" do
|
121
|
+
pull 'database.sqlite' => true
|
122
|
+
@result['database.sqlite3'].should == true
|
123
|
+
end
|
124
|
+
|
125
|
+
it "should pull false" do
|
126
|
+
pull 'database.sqlite' => false, 'upload.private' => true
|
127
|
+
@result['database.sqlite3'].should == false
|
128
|
+
end
|
129
|
+
|
130
|
+
end
|
131
|
+
|
108
132
|
describe "database.mongoid" do
|
109
133
|
|
110
134
|
it "should push true" do
|
data/templates/config/deploy.rb
CHANGED
@@ -40,6 +40,9 @@ namespace :deploy do
|
|
40
40
|
<% if upload.private? %>
|
41
41
|
run "ln -s #{shared_path}/private #{release_path}/private"
|
42
42
|
<% end %>
|
43
|
+
<% if database.sqlite3? %>
|
44
|
+
run "ln -s #{shared_path}/system/production.sqlite3 #{release_path}/db/production.sqlite3"
|
45
|
+
<% end %>
|
43
46
|
end
|
44
47
|
|
45
48
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rapid-app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dan Cunning
|