pushapp 0.1.9 → 0.2.0

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: 0925fc0df2513ef69625827617c6039afb8fdf63
4
- data.tar.gz: a75f12e137642dd4fd4c73dd8aa89cea41e3410d
3
+ metadata.gz: 2c1d8b53abc5b6c8ce82afc37add4c5de282f616
4
+ data.tar.gz: 948444917c1f2dab69cc75c32a41f45182e185cf
5
5
  SHA512:
6
- metadata.gz: 8fca8aee24ce060f099e7a51ea0b41599852e25b35cef1955768c4d82226cbcccb4cebebeceafaadb2e8807c2b2b4d9071dfab8ec4c80274ae43832361f962fb
7
- data.tar.gz: 990da2ef75adbb0d077e5407f339a5b3cf1400ddfc2d8f5e7ed4c54c1f91cc96c6eed4f24d027f8a1dab691e52261578b7e57608aea3275a902e93656fd57134
6
+ metadata.gz: c2c7dbf50c7a3392e6869ef5783c6e014639e09c238c8f27b60641cd1f8b07806305b9702ec6ac89db5e6651edef780f22be58c5fe56971db11aa922aa7bc458
7
+ data.tar.gz: 7aaaa9aecb8fab3bf758e85b522a1108dafa8f936152a9dd09396a6e72d033aaa5c58e40b8ddee5d417ba9b6a7c27784712da3a936b8120078a2593bd3568f7e
data/README.md CHANGED
@@ -14,7 +14,15 @@ Add this line to your application's Gemfile:
14
14
 
15
15
  add ./vendor/bundle to .gitignore
16
16
 
17
- TODO: Write usage instructions here
17
+ ## Supported tasks
18
+
19
+ - :unicorn_signal - sends USR2 signal to tmp/pids/unicorn.pid
20
+ - :foreman_export - foreman export (upstart is default)
21
+ - :upstart_start - start upstart job
22
+ - :upstart_stop - stop upstart job
23
+ - :upstart_restart - restart upstart job
24
+ - :whenever_update - whenever update (crontab)
25
+ - :nginx_export - copy nginx site config to nginx/sites_enabled
18
26
 
19
27
  ## Contributing
20
28
 
@@ -129,36 +129,14 @@ module Pushapp
129
129
 
130
130
  def postgresql_config
131
131
  {
132
- config: {
133
- listen_addresses: '*',
134
- port: '5432'
135
- },
136
- pg_hba: [
137
- {
138
- type: 'local',
139
- db: 'postgres',
140
- user: 'postgres',
141
- addr: nil,
142
- method: 'trust'
143
- },
132
+ "users": [
144
133
  {
145
- type: 'host',
146
- db: 'all',
147
- user: 'all',
148
- addr: '0.0.0.0/0',
149
- method: 'md5'
150
- },
151
- {
152
- type: 'host',
153
- db: 'all',
154
- user: 'all',
155
- addr: '::1/0',
156
- method: 'md5'
134
+ "username": app_user,
135
+ "superuser": true,
136
+ "createdb": true,
137
+ "login": true
157
138
  }
158
- ],
159
- password: {
160
- postgres: options[:db_password]
161
- }
139
+ ]
162
140
  }
163
141
  end
164
142
 
@@ -239,14 +217,14 @@ module Pushapp
239
217
  'runit',
240
218
  'memcached',
241
219
  mysql? ? 'mysql::server' : nil,
242
- postgresql? ? 'postgresql::server' : nil,
220
+ postgresql? ? ['postgresql::server', 'postgresql::contrib'] : nil,
243
221
  'imagemagick',
244
222
  'ruby_build',
245
223
  'rbenv::user',
246
224
  'nginx::repo',
247
225
  'nginx',
248
226
  'git'
249
- ].compact
227
+ ].flatten.compact
250
228
  end
251
229
 
252
230
  def user_json
@@ -1,3 +1,3 @@
1
1
  module Pushapp
2
- VERSION = '0.1.9'
2
+ VERSION = '0.2.0'
3
3
  end
@@ -5,7 +5,7 @@ cookbook 'memcached'
5
5
  <% if options[:database] == 'mysql' %>
6
6
  cookbook 'mysql', {}
7
7
  <% elsif options[:database] == 'postgresql' %>
8
- cookbook 'postgresql', {}
8
+ cookbook 'postgresql', {:github => 'phlipper/chef-postgresql'}
9
9
  <% end %>
10
10
  cookbook 'sudo', {:gihub => 'patcon/chef-sudo'}
11
11
  cookbook 'locale', {:github => 'yury/hw-chef-locale'}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Korolev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-15 00:00:00.000000000 Z
11
+ date: 2013-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor