mobile_workflow_cli 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/mobile_workflow_cli/app_generator.rb +10 -9
- data/lib/mobile_workflow_cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14eadecdf65029000c8a7fee3e1a5ac7d2f94c0f855fd6f20a163a5f98376647
|
4
|
+
data.tar.gz: 18aa7a950972b919664664e6e9fcceff25930ec769f95eda5aa5956b8f07c996
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3da9a2036e2e6a15fb39d8b829e86609876cd43f75e27cadf58f9fc072dc81e85dbef35e9e3507073979edd08061d0eacfe3d4f82a152e2c542352664762060
|
7
|
+
data.tar.gz: 78a427c0e21f31f9c8fbb15cf7cc749184634e7691e379a8bd47566a7019d4bd1bd96b2f3767105910028e5cc758a35c82578869f1a7925be30b881e2a618e74
|
data/Gemfile.lock
CHANGED
@@ -21,21 +21,22 @@ module MobileWorkflowCli
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def finish_template
|
24
|
+
run "spring stop"
|
24
25
|
open_api_spec = read_openapi_spec
|
25
26
|
generate_models(open_api_spec)
|
26
27
|
setup_db
|
27
|
-
generate_administrate
|
28
28
|
generate_base_api_controller(open_api_spec)
|
29
29
|
generate_controllers_and_routes(open_api_spec)
|
30
30
|
generate_procfile
|
31
|
-
|
32
31
|
admin_user = 'admin'
|
33
32
|
admin_password = SecureRandom.base64(12)
|
34
33
|
generate_dot_env(admin_user, admin_password)
|
35
34
|
super
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
after_bundle do
|
36
|
+
generate_administrate
|
37
|
+
initial_git_commit
|
38
|
+
deploy_heroku(admin_user, admin_password) if options[:heroku]
|
39
|
+
end
|
39
40
|
end
|
40
41
|
|
41
42
|
protected
|
@@ -54,7 +55,7 @@ module MobileWorkflowCli
|
|
54
55
|
end
|
55
56
|
|
56
57
|
def generate_administrate
|
57
|
-
generate
|
58
|
+
generate 'administrate:install'
|
58
59
|
file 'app/assets/config/manifest.js', <<-CODE
|
59
60
|
//= link administrate/application.css
|
60
61
|
//= link administrate/application.js
|
@@ -115,9 +116,9 @@ module MobileWorkflowCli
|
|
115
116
|
end
|
116
117
|
|
117
118
|
def setup_db
|
118
|
-
rails_command
|
119
|
-
rails_command
|
120
|
-
rails_command
|
119
|
+
rails_command "db:drop"
|
120
|
+
rails_command "db:create"
|
121
|
+
rails_command "db:migrate"
|
121
122
|
end
|
122
123
|
|
123
124
|
def generate_procfile
|