rails_apps_composer 3.1.16 → 3.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/recipes/deployment.rb +0 -103
- data/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 192f5f51d6f9cde58caa6496eba8e4eb380b68ab
|
|
4
|
+
data.tar.gz: a1d68007907256ce445c46fdc003536228c44313
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8066e1fd3d05b5ec01046c33942796863c496a8d6432809bcbbcfdbfee25368b2b17f206c226e3251e8218305583a5ef1c4747e60c0c6d79f6c8fa75cb2ef2e1
|
|
7
|
+
data.tar.gz: 4a77fd7be998a52edda3172f727d94e8b4340bcf6588a3981550708211de32cddc8836120336102170277019a354bfae4a4e68e8fa3b41a7a84e0bc724a2747a
|
data/recipes/deployment.rb
CHANGED
|
@@ -12,109 +12,6 @@ if prefer :deployment, 'heroku'
|
|
|
12
12
|
add_gem 'sqlite3', group: [:development, :test]
|
|
13
13
|
add_gem 'pg', group: :production
|
|
14
14
|
end
|
|
15
|
-
stage_three do
|
|
16
|
-
say_wizard "recipe stage three"
|
|
17
|
-
case prefs[:email]
|
|
18
|
-
when 'gmail'
|
|
19
|
-
append_file 'app.json' do <<-TEXT
|
|
20
|
-
"GMAIL_USERNAME": {
|
|
21
|
-
"description": "Your Gmail address for sending mail.",
|
|
22
|
-
"value": "user@example.com",
|
|
23
|
-
"required": false
|
|
24
|
-
},
|
|
25
|
-
"GMAIL_PASSWORD": {
|
|
26
|
-
"description": "Your Gmail password for sending mail.",
|
|
27
|
-
"value": "changeme",
|
|
28
|
-
"required": false
|
|
29
|
-
},
|
|
30
|
-
TEXT
|
|
31
|
-
end
|
|
32
|
-
when 'sendgrid'
|
|
33
|
-
append_file 'app.json' do <<-TEXT
|
|
34
|
-
"SENDGRID_USERNAME": {
|
|
35
|
-
"description": "Your SendGrid address for sending mail.",
|
|
36
|
-
"value": "user@example.com",
|
|
37
|
-
"required": false
|
|
38
|
-
},
|
|
39
|
-
"SENDGRID_PASSWORD": {
|
|
40
|
-
"description": "Your SendGrid password for sending mail.",
|
|
41
|
-
"value": "changeme",
|
|
42
|
-
"required": false
|
|
43
|
-
},
|
|
44
|
-
TEXT
|
|
45
|
-
end
|
|
46
|
-
when 'mandrill'
|
|
47
|
-
append_file 'app.json' do <<-TEXT
|
|
48
|
-
"MANDRILL_USERNAME": {
|
|
49
|
-
"description": "Your Mandrill address for sending mail.",
|
|
50
|
-
"value": "user@example.com",
|
|
51
|
-
"required": false
|
|
52
|
-
},
|
|
53
|
-
"MANDRILL_APIKEY": {
|
|
54
|
-
"description": "Your Mandrill API key for sending mail.",
|
|
55
|
-
"value": "changeme",
|
|
56
|
-
"required": false
|
|
57
|
-
},
|
|
58
|
-
TEXT
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
if prefer :authentication, 'omniauth'
|
|
62
|
-
append_file 'app.json' do <<-TEXT
|
|
63
|
-
"OMNIAUTH_PROVIDER_KEY": {
|
|
64
|
-
"description": "Credentials from Twitter, Facebook, or another provider.",
|
|
65
|
-
"value": "some_long_key",
|
|
66
|
-
"required": false
|
|
67
|
-
},
|
|
68
|
-
"OMNIAUTH_PROVIDER_SECRET": {
|
|
69
|
-
"description": "Credentials from Twitter, Facebook, or another provider.",
|
|
70
|
-
"value": "some_long_key",
|
|
71
|
-
"required": false
|
|
72
|
-
},
|
|
73
|
-
TEXT
|
|
74
|
-
end
|
|
75
|
-
end
|
|
76
|
-
if prefer :authentication, 'devise'
|
|
77
|
-
append_file 'app.json' do <<-TEXT
|
|
78
|
-
"ADMIN_EMAIL": {
|
|
79
|
-
"description": "The administrator's email address for signing in.",
|
|
80
|
-
"value": "user@example.com",
|
|
81
|
-
"required": true
|
|
82
|
-
},
|
|
83
|
-
"ADMIN_PASSWORD": {
|
|
84
|
-
"description": "The administrator's password for signing in.",
|
|
85
|
-
"value": "changeme",
|
|
86
|
-
"required": true
|
|
87
|
-
},
|
|
88
|
-
"DOMAIN_NAME": {
|
|
89
|
-
"description": "Required for sending mail. Give an app name or use a custom domain.",
|
|
90
|
-
"value": "myapp.herokuapp.com",
|
|
91
|
-
"required": false
|
|
92
|
-
},
|
|
93
|
-
TEXT
|
|
94
|
-
end
|
|
95
|
-
end
|
|
96
|
-
if (!prefs[:secrets].nil?)
|
|
97
|
-
prefs[:secrets].each do |secret|
|
|
98
|
-
append_file 'app.json' do <<-TEXT
|
|
99
|
-
"#{secret.upcase}": {
|
|
100
|
-
"description": "no description",
|
|
101
|
-
"required": false
|
|
102
|
-
},
|
|
103
|
-
TEXT
|
|
104
|
-
end
|
|
105
|
-
end
|
|
106
|
-
end
|
|
107
|
-
append_file 'app.json' do <<-TEXT
|
|
108
|
-
"RAILS_ENV": "production"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
TEXT
|
|
112
|
-
end
|
|
113
|
-
if File.exists?('db/migrate')
|
|
114
|
-
gsub_file 'app.json', /"scripts": {/,
|
|
115
|
-
"\"scripts\": {\"postdeploy\": \"bundle exec rake db:migrate; bundle exec rake db:seed\""
|
|
116
|
-
end
|
|
117
|
-
end
|
|
118
15
|
end
|
|
119
16
|
|
|
120
17
|
if prefer :deployment, 'capistrano3'
|
data/version.rb
CHANGED