producer-rails 0.0.1 → 0.0.2

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: a4ffdb392f9f8bec2527ee9069c9784d39fded5b
4
- data.tar.gz: ba6bff23838c42212ca604515947028c881e9571
3
+ metadata.gz: 94b7712d7c5ae3b7fa48abc2cbdc166450eb5770
4
+ data.tar.gz: 48f8c08be28e5ddc9f228d31e33956bb12a584f1
5
5
  SHA512:
6
- metadata.gz: 1c0fb325ea97d9a9bbe6f868956a895fd4e480d597468fbd45e48628e61a1579986249bdf30dfd819d61f309243c3472fe6d9405cc547f781665f9d79e7d9939
7
- data.tar.gz: 8ecdcff66fd2d4693d6093a8ced55fb3856e2d10c38a1791c6787ec3a6e44dd1fe44506b99346f33fb0b708d9ba96500baeeace180c939d1ffa2013e9e6477f0
6
+ metadata.gz: 6353789487855c93c42ff28173ab284b8e5cbb9e2a0ddfc8a00d14c4eed5c95b793e41128bf17e18c833abd71cfe2f8afbe1169099f8d549212a314214543c79
7
+ data.tar.gz: 26f5e9f09afe0e247ce7d26be53823368a45d90851eaddfc812cfc55d294e90ec1a80ca85d90a9dcdd0ed19b808037600d34171a2388109b9ff9fe48e21ebb85
@@ -1,5 +1,5 @@
1
1
  module Producer
2
2
  module Rails
3
- VERSION = '0.0.1'.freeze
3
+ VERSION = '0.0.2'.freeze
4
4
  end
5
5
  end
@@ -15,7 +15,6 @@ module Producer
15
15
 
16
16
  define_macro :deploy do
17
17
  app_path = get :app_path
18
- $app_path = app_path
19
18
 
20
19
  if ENV.key? 'DEPLOY_INIT'
21
20
  ensure_dir app_path, 0701
@@ -62,14 +61,13 @@ module Producer
62
61
  end
63
62
 
64
63
  define_macro :app_init do |path, dirs: []|
65
- directories = (%w[tmp tmp/run] + dirs).map do |e|
66
- File.join(path, e)
67
- end
64
+ run_dir = "#{path}/tmp/run"
65
+ dirs.map! { |e| File.join(path, e) }
68
66
 
69
- condition { no_dir? directories.first }
67
+ condition { no_dir? run_dir }
70
68
 
71
- directories.each { |e| mkdir e, 0700 }
72
- sh "cd #{path} && chmod 701 tmp tmp/run"
69
+ mkdir run_dir, 0701
70
+ dirs.each { |e| mkdir e, 0700 }
73
71
  end
74
72
 
75
73
  define_macro :db_config do |path|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: producer-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibault Jouan