autowow 0.11.2 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/autowow/cli.rb +18 -0
- data/lib/autowow/commands/gem.rb +16 -0
- data/lib/autowow/features/gem.rb +13 -1
- data/lib/autowow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf31a0f3865413f5ed9787576ac513160c563d2f
|
4
|
+
data.tar.gz: 176ece3b3821556fbd2d208502e7603543d7b2bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2daa4a0a45cd0a82e0f1a342f794439e9174f57beff4ed11ac24b4ecd0aecd9d0eec8d1a6f391d751c7b1bb62fc55d578c19ded0e157a2e10d1563d640bb2b33
|
7
|
+
data.tar.gz: 03505f12795c5f1a78989df05aefeee3156760b421fe490d542c96f65f7876fa32b980af255be45f3e1def4d110fe9ffd43edab1ae19f7e80ccd8e59e89c16f8
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
#### Set of commands to [auto]mate [w]ay [o]f [w]orking
|
4
4
|
|
5
5
|
<!--- Version informartion -->
|
6
|
-
*You are viewing the README of version
|
6
|
+
*You are viewing the README of the development version. You can find the README of the latest release (v0.11.2) [here](https://github.com/thisismydesign/autowow/releases/tag/v0.11.2).*
|
7
7
|
<!--- Version informartion end -->
|
8
8
|
|
9
9
|
| Branch | Status |
|
data/lib/autowow/cli.rb
CHANGED
@@ -23,6 +23,9 @@ module Autowow
|
|
23
23
|
map %w[gr] => :greet
|
24
24
|
map %w[rpa] => :rubocop_parallel_autocorrect
|
25
25
|
map %w[be] => :bundle_exec
|
26
|
+
map %w[dbm] => :db_migrate
|
27
|
+
map %w[dbsch] => :db_schema
|
28
|
+
map %w[dbstr] => :db_structure
|
26
29
|
|
27
30
|
desc "branch_merged", "clean working branch and return to master"
|
28
31
|
def branch_merged
|
@@ -93,5 +96,20 @@ module Autowow
|
|
93
96
|
def bundle_exec(*cmd)
|
94
97
|
Autowow::Features::Gem.bundle_exec(cmd)
|
95
98
|
end
|
99
|
+
|
100
|
+
desc "db_migrate", "sets up DB via migration"
|
101
|
+
def db_migrate
|
102
|
+
Autowow::Features::Gem.db_migrate
|
103
|
+
end
|
104
|
+
|
105
|
+
desc "db_schema", "sets up DB via loading schema"
|
106
|
+
def db_schema
|
107
|
+
Autowow::Features::Gem.db_schema
|
108
|
+
end
|
109
|
+
|
110
|
+
desc "db_structure", "sets up DB via loading structure"
|
111
|
+
def db_structure
|
112
|
+
Autowow::Features::Gem.db_structure
|
113
|
+
end
|
96
114
|
end
|
97
115
|
end
|
data/lib/autowow/commands/gem.rb
CHANGED
@@ -32,6 +32,22 @@ module Autowow
|
|
32
32
|
["bundle", "exec"]
|
33
33
|
end
|
34
34
|
|
35
|
+
def rake
|
36
|
+
be + ["rake"]
|
37
|
+
end
|
38
|
+
|
39
|
+
def rake_db_migrate
|
40
|
+
["DISABLE_DATABASE_ENVIRONMENT_CHECK=1"] + rake + ["db:drop", "db:create", "db:migrate"]
|
41
|
+
end
|
42
|
+
|
43
|
+
def rake_db_schema
|
44
|
+
["DISABLE_DATABASE_ENVIRONMENT_CHECK=1"] + rake + ["db:drop", "db:create", "db:schema:load"]
|
45
|
+
end
|
46
|
+
|
47
|
+
def rake_db_structure
|
48
|
+
["DISABLE_DATABASE_ENVIRONMENT_CHECK=1"] + rake + ["db:drop", "db:create", "db:structure:load"]
|
49
|
+
end
|
50
|
+
|
35
51
|
include ReflectionUtils::CreateModuleFunctions
|
36
52
|
end
|
37
53
|
end
|
data/lib/autowow/features/gem.rb
CHANGED
@@ -59,7 +59,19 @@ module Autowow
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def bundle_exec(cmd)
|
62
|
-
|
62
|
+
pretty_with_output.run(["bundle", "exec"] + cmd)
|
63
|
+
end
|
64
|
+
|
65
|
+
def db_migrate
|
66
|
+
pretty_with_output.run(rake_db_migrate)
|
67
|
+
end
|
68
|
+
|
69
|
+
def db_schema
|
70
|
+
pretty_with_output.run(rake_db_schema)
|
71
|
+
end
|
72
|
+
|
73
|
+
def db_structure
|
74
|
+
pretty_with_output.run(rake_db_structure)
|
63
75
|
end
|
64
76
|
|
65
77
|
def bump_readme_version_information(version)
|
data/lib/autowow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autowow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thisismydesign
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: easy_logging
|