evt-command_line-component_generator 0.1.0.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: aaba3e81187cdccebeea72af7b02b32da3c41d20
|
4
|
+
data.tar.gz: 7487ba7ca094513b0c70e51320b6969dc9793d24
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 29c8ebdde1192d655e338e59ac45ac98de821ec66b1553979f3c748ef9c9601a2b3eea16c0799c91db0b93f212f1ee0e2c1f341adbd0cdfc41364d72b96cd83d
|
7
|
+
data.tar.gz: cf68d29597dfec482c718ea9cfdf495186248e4c2028bf653a19a2bacbe1c4fc19f2d02d251e8b3f76f71f82f9b8058f13e02a9e2a1724d3b1109f781146fd45
|
data/executable/evt
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
module CommandLine
|
2
|
+
module ComponentGenerator
|
3
|
+
module Commands
|
4
|
+
class Component < Thor::Group
|
5
|
+
include Thor::Actions
|
6
|
+
|
7
|
+
argument :name
|
8
|
+
|
9
|
+
def component_name
|
10
|
+
@component_name ||= name.end_with?('_component') ? name : "#{name}_component"
|
11
|
+
end
|
12
|
+
|
13
|
+
def component_root_dir_name
|
14
|
+
@component_dir_name ||= component_name.gsub('_','-')
|
15
|
+
end
|
16
|
+
|
17
|
+
def component_constant_name
|
18
|
+
@component_constant_name ||= Casing::Pascal.(component_name)
|
19
|
+
end
|
20
|
+
|
21
|
+
def entity_name
|
22
|
+
@entity_name ||= Casing::Underscore.(entity_constant_name)
|
23
|
+
end
|
24
|
+
|
25
|
+
def entity_constant_name
|
26
|
+
@entity_constant_name ||= Casing::Pascal.(component_name.gsub('_component', ''))
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.source_root
|
30
|
+
File.dirname(__FILE__) + '/../../../../source'
|
31
|
+
end
|
32
|
+
|
33
|
+
def initialize(args=[], options={}, config={})
|
34
|
+
super
|
35
|
+
self.destination_root = component_root_dir_name
|
36
|
+
end
|
37
|
+
|
38
|
+
def generate_component
|
39
|
+
directory('./')
|
40
|
+
end
|
41
|
+
|
42
|
+
def assign_executable_attribute
|
43
|
+
chmod './install-gems.sh', 0755
|
44
|
+
chmod './test.sh', 0755
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
metadata
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: evt-command_line-component_generator
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- The Eventide Project
|
8
|
+
autorequire:
|
9
|
+
bindir: executable
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-07-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: evt-casing
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: test_bench
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: " "
|
56
|
+
email: opensource@eventide-project.org
|
57
|
+
executables:
|
58
|
+
- evt
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- executable/evt
|
63
|
+
- lib/command_line/component_generator.rb
|
64
|
+
- lib/command_line/component_generator/commands/component.rb
|
65
|
+
- lib/command_line/component_generator/interface.rb
|
66
|
+
homepage: https://github.com/eventide-project/command-line-project-generator
|
67
|
+
licenses:
|
68
|
+
- MIT
|
69
|
+
metadata: {}
|
70
|
+
post_install_message:
|
71
|
+
rdoc_options: []
|
72
|
+
require_paths:
|
73
|
+
- lib
|
74
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 2.4.0
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
requirements: []
|
85
|
+
rubyforge_project:
|
86
|
+
rubygems_version: 2.6.11
|
87
|
+
signing_key:
|
88
|
+
specification_version: 4
|
89
|
+
summary: Command line project generator
|
90
|
+
test_files: []
|