ctlst 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/ctlst +6 -1
- data/templates/component.rb +4 -0
- data/templates/domain.rb +4 -0
- data/templates/gateway.rb +4 -0
- data/templates/help.rb +10 -0
- data/templates/new.rb +4 -0
- data/templates/usecase.rb +4 -0
- 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: 258ae040f12a07e26c9c578abbca2c1dd6787661ec643dfc56edb9301235e8ed
|
|
4
|
+
data.tar.gz: 7396f08f07cbf9e6898def88b1648acbeebdd95b39788dec6ccd46f56e9af20a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ecb74669054cc38db7479dfb18ccd89bfbbe272a7fcf8b9ee42fd370626929d63dfc47c6fcc824387d0ba74c5509839d8e9f2fdb2e52d8130748a8dd29b7b2ce
|
|
7
|
+
data.tar.gz: 3679735da58fcf7968e3246d40f7caea1aa469ad12913572a5a05564ae105cd796cd14decc907fb3b8780a20eec4245d1be8a6822ff7449fc63e640f7ed060ef
|
data/bin/ctlst
CHANGED
|
@@ -5,5 +5,10 @@ begin
|
|
|
5
5
|
require_relative "../templates/#{ARGV[0]}"
|
|
6
6
|
Template.main(*ARGV.drop(1))
|
|
7
7
|
rescue LoadError
|
|
8
|
-
|
|
8
|
+
if ARGV[0].nil?
|
|
9
|
+
require_relative '../templates/help'
|
|
10
|
+
Template.main(*ARGV.drop(1))
|
|
11
|
+
else
|
|
12
|
+
print "No such template '#{ARGV[0]}'\n"
|
|
13
|
+
end
|
|
9
14
|
end
|
data/templates/component.rb
CHANGED
data/templates/domain.rb
CHANGED
data/templates/gateway.rb
CHANGED
data/templates/help.rb
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
require_relative '../lib/templates'
|
|
2
2
|
module Template
|
|
3
|
+
def self.short_help
|
|
4
|
+
'help'
|
|
5
|
+
end
|
|
6
|
+
|
|
3
7
|
def self.main(*_args)
|
|
4
8
|
print "Help:\n"
|
|
9
|
+
print "\t" + short_help + "\n"
|
|
10
|
+
|
|
11
|
+
Dir.glob(__dir__ + '/*').select { |f| File.file?(f) && f != __FILE__ }.each do |template|
|
|
12
|
+
require_relative template
|
|
13
|
+
print "\t" + Template.short_help + "\n"
|
|
14
|
+
end
|
|
5
15
|
end
|
|
6
16
|
end
|
data/templates/new.rb
CHANGED
data/templates/usecase.rb
CHANGED