producer-rails 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/producer/rails/version.rb +1 -1
- data/lib/producer/rails.rb +5 -0
- metadata +2 -3
data/lib/producer/rails.rb
CHANGED
@@ -29,6 +29,7 @@ module Producer
|
|
29
29
|
git_update app_path
|
30
30
|
bundle_install app_path
|
31
31
|
db_migrate app_path
|
32
|
+
db_seed app_path if (get :db_seed rescue false)
|
32
33
|
end
|
33
34
|
|
34
35
|
assets_update app_path
|
@@ -100,6 +101,10 @@ production:
|
|
100
101
|
sh "cd #{path} && bundle exec rake db:migrate"
|
101
102
|
end
|
102
103
|
|
104
|
+
define_macro :db_seed do |path|
|
105
|
+
sh "cd #{path} && bundle exec rake db:seed"
|
106
|
+
end
|
107
|
+
|
103
108
|
define_macro :secrets_init do |path|
|
104
109
|
path = "#{path}/config/secrets.yml"
|
105
110
|
conf = <<-eoh
|
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.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-10-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: producer-core
|
@@ -91,4 +91,3 @@ signing_key:
|
|
91
91
|
specification_version: 3
|
92
92
|
summary: producer rails addon
|
93
93
|
test_files: []
|
94
|
-
has_rdoc:
|