minke 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/bin/minke +5 -4
- data/lib/minke/generators/processor.rb +9 -9
- data/lib/minke/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTEwNTdmMjU1NDBmOTdhOWNiMTdkNWU5Y2MwZGQ4MDdkNTRmMGEwZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjI0ZDU0MjgxNDQwNmQ1MTRhNGRlMjI4OTg0MjBlNzA5ODJjYTA0ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzEwOWMyNzU1NDBiYmYwOGU2MjRkMWE3YzA0YWQ3N2Y0ODFmMDBhN2U3NjIx
|
10
|
+
NTdjNjFkOTcwNTA3OGQ2NGY3ODhjZjA2YTVhOWI4OWIzZDRkNjg0Mzk4YmY2
|
11
|
+
MmE5OGU1NzJjNzQyYjJmYzVhNDI5YTQ1ZWExYjRlY2E5NzJhMWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjE0MTgxNDk2ZGNhZDg2ZDVmYzVkYTk3ZDFiMmFjNmIwZmY5MmUwOGE5OGVj
|
14
|
+
MzUxODI2OWM4MTgzMWMxNjVkZWVmMGRmZDQ5Yzc4Y2M1OTYyYWRkNDJjNmUy
|
15
|
+
YjA3NzIyMjc4YjNkMTQxODdhODg5NGIzZDNjNGVlYTMyMWUwZDY=
|
data/bin/minke
CHANGED
@@ -19,6 +19,11 @@ puts ""
|
|
19
19
|
puts "Version: #{Minke::VERSION}"
|
20
20
|
puts ""
|
21
21
|
|
22
|
+
Minke::Generators::Processor.load_generators
|
23
|
+
|
24
|
+
puts ""
|
25
|
+
puts ""
|
26
|
+
|
22
27
|
options = {}
|
23
28
|
OptionParser.new do |opts|
|
24
29
|
opts.banner = "Usage: minke [options]"
|
@@ -39,10 +44,6 @@ variables = Minke::Generators::ConfigVariables.new.tap do |v|
|
|
39
44
|
v.src_root = File.expand_path(options[:output]) unless options[:output] == nil
|
40
45
|
end
|
41
46
|
processor = Minke::Generators::Processor.new variables, Minke::Docker::DockerRunner.new
|
42
|
-
processor.load_generators
|
43
|
-
|
44
|
-
puts ""
|
45
|
-
puts ""
|
46
47
|
|
47
48
|
if options[:encrypt] != nil
|
48
49
|
puts "Please specify a key to use for encryption using -k [path to file]" if options[:key] == nil
|
@@ -4,6 +4,15 @@ module Minke
|
|
4
4
|
# Process handles the creation of new projects from a generator template.
|
5
5
|
class Processor
|
6
6
|
|
7
|
+
def self.load_generators
|
8
|
+
puts '# Loading installed generators'
|
9
|
+
Gem::Specification.find_all.each do |spec|
|
10
|
+
if spec.metadata != nil && spec.metadata['entrypoint'] != nil
|
11
|
+
require spec.metadata['entrypoint']
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
7
16
|
def initialize variables, docker_runner
|
8
17
|
@variables = variables
|
9
18
|
@docker_runner = docker_runner
|
@@ -105,15 +114,6 @@ module Minke
|
|
105
114
|
Gem::Specification.sort_by{ |g| [g.name.downcase, g.version] }.group_by{ |g| g.name }
|
106
115
|
end
|
107
116
|
|
108
|
-
def load_generators
|
109
|
-
puts '# Loading installed generators'
|
110
|
-
Gem::Specification.find_all.each do |spec|
|
111
|
-
if spec.metadata != nil && spec.metadata['entrypoint'] != nil
|
112
|
-
require spec.metadata['entrypoint']
|
113
|
-
end
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
117
|
def get_generator generator
|
118
118
|
config = Minke::Generators.get_registrations.select { |c| c.name == generator}.first
|
119
119
|
if config == nil
|
data/lib/minke/version.rb
CHANGED