CapicuaGen 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/CapicuaGen.gemspec +57 -0
- data/Gemfile +4 -0
- data/LICENSE +165 -0
- data/README.md +36 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/capicuagen.rb +26 -0
- data/lib/CapicuaGen/Examples/Example/Source/example_feature.rb +63 -0
- data/lib/CapicuaGen/Examples/Example/Template/SplashForm.designer.erb +141 -0
- data/lib/CapicuaGen/Examples/Example/Template/SplashForm.erb +160 -0
- data/lib/CapicuaGen/Examples/Example/Template/SplashForm.resx.erb +535 -0
- data/lib/CapicuaGen/Mixins/attributes_mixin.rb +62 -0
- data/lib/CapicuaGen/Mixins/parameter_mixin.rb +46 -0
- data/lib/CapicuaGen/Mixins/reflection_mixin.rb +83 -0
- data/lib/CapicuaGen/Tools/message_helper.rb +105 -0
- data/lib/CapicuaGen/Tools/template_helper.rb +87 -0
- data/lib/CapicuaGen/Tools/xml_helper.rb +100 -0
- data/lib/CapicuaGen/attribute_mixer.rb +77 -0
- data/lib/CapicuaGen/capicua_gen.rb +38 -0
- data/lib/CapicuaGen/feature.rb +151 -0
- data/lib/CapicuaGen/file_information.rb +52 -0
- data/lib/CapicuaGen/generator.rb +289 -0
- data/lib/CapicuaGen/generator_command_line.rb +216 -0
- data/lib/CapicuaGen/target.rb +49 -0
- data/lib/CapicuaGen/template.rb +39 -0
- data/lib/CapicuaGen/template_feature.rb +331 -0
- data/lib/CapicuaGen/template_target.rb +60 -0
- data/lib/CapicuaGen/version.rb +3 -0
- metadata +185 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3cc841ece3a4869ac6753744b3ca7acd219dbaec
|
4
|
+
data.tar.gz: 7a0631c152001c3c5511af0a49cdebe9371301a3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2b17f8f214de5ecdde9426bc01063962fe79a144e3bf4386dec63af379be67fbe64105a9dd4db56bb14c744eb1cfa837ea5422c9a3552e990243ba2831796545
|
7
|
+
data.tar.gz: 227c74f68a9d83b519e40dfaef19dcba5e58d1dc821b45b6745e2a6fc45aecb4368ca183448ef6901cf0cacb5079a76fb7b155af7dcdcc739c10149865d8b023
|
data/.gitignore
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/Gemfile.lock
|
4
|
+
/_yardoc/
|
5
|
+
/coverage/
|
6
|
+
/doc/
|
7
|
+
/pkg/
|
8
|
+
/spec/reports/
|
9
|
+
/tmp/
|
10
|
+
/*.gem
|
11
|
+
/.idea/.rakeTasks
|
12
|
+
/.idea/CapicuaGen.iml
|
13
|
+
/.idea/encodings.xml
|
14
|
+
/.idea/misc.xml
|
15
|
+
/.idea/modules.xml
|
16
|
+
/.idea/runConfigurations/main.xml
|
17
|
+
/.idea/vcs.xml
|
18
|
+
/.idea/workspace.xml
|
19
|
+
/.idea
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at jbautista@bansi.com.mx. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/CapicuaGen.gemspec
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'CapicuaGen/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "CapicuaGen"
|
8
|
+
spec.version = CapicuaGen::VERSION
|
9
|
+
spec.authors = ["José Luis Bautista Martín"]
|
10
|
+
spec.email = ["joseluisbautista@gmail.com"]
|
11
|
+
spec.date = Date.today.to_s
|
12
|
+
|
13
|
+
|
14
|
+
spec.summary = %q{CapicuaGen es un software que ayuda a la creación automática de
|
15
|
+
sistemas empresariales a través de la definición y ensamblado de
|
16
|
+
diversos generadores de características.
|
17
|
+
}
|
18
|
+
spec.description = %q{CapicuaGen es un software que ayuda a la creación automática de
|
19
|
+
sistemas empresariales a través de la definición y ensamblado de
|
20
|
+
diversos generadores de características.
|
21
|
+
|
22
|
+
El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
|
23
|
+
del 2016.
|
24
|
+
|
25
|
+
Puede modificar y distribuir este software, según le plazca, y usarlo
|
26
|
+
para cualquier fin ya sea comercial, personal, educativo, o de cualquier
|
27
|
+
índole, siempre y cuando incluya este mensaje, y se permita acceso el
|
28
|
+
código fuente.
|
29
|
+
|
30
|
+
Este software es código libre, y se licencia bajo LGPL.
|
31
|
+
|
32
|
+
Para más información consultar http://www.gnu.org/licenses/lgpl.html}
|
33
|
+
|
34
|
+
spec.homepage = "http://desdelashorasextras.blogspot.mx/"
|
35
|
+
spec.licenses = ['LGPL']
|
36
|
+
|
37
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
38
|
+
# delete this section to allow pushing this gem to any host.
|
39
|
+
if spec.respond_to?(:metadata)
|
40
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
41
|
+
else
|
42
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
43
|
+
end
|
44
|
+
|
45
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|\.idea)/}) }
|
46
|
+
spec.bindir = "exe"
|
47
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
48
|
+
spec.require_paths = ["lib"]
|
49
|
+
|
50
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
51
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
52
|
+
|
53
|
+
spec.add_runtime_dependency 'activesupport', '>=2.3.18', '~>2.3'
|
54
|
+
spec.add_runtime_dependency 'nokogiri', '>=1.6.7', '~>1.6'
|
55
|
+
spec.add_runtime_dependency 'uuidtools', '>=2.1.5', '~>2.1'
|
56
|
+
|
57
|
+
end
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,165 @@
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
2
|
+
Version 3, 29 June 2007
|
3
|
+
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
6
|
+
of this license document, but changing it is not allowed.
|
7
|
+
|
8
|
+
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
11
|
+
License, supplemented by the additional permissions listed below.
|
12
|
+
|
13
|
+
0. Additional Definitions.
|
14
|
+
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
17
|
+
General Public License.
|
18
|
+
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
20
|
+
other than an Application or a Combined Work as defined below.
|
21
|
+
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
25
|
+
of using an interface provided by the Library.
|
26
|
+
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
28
|
+
Application with the Library. The particular version of the Library
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
30
|
+
Version".
|
31
|
+
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
35
|
+
based on the Application, and not on the Linked Version.
|
36
|
+
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
38
|
+
object code and/or source code for the Application, including any data
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
41
|
+
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
43
|
+
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
46
|
+
|
47
|
+
2. Conveying Modified Versions.
|
48
|
+
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
51
|
+
that uses the facility (other than as an argument passed when the
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
53
|
+
version:
|
54
|
+
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
56
|
+
ensure that, in the event an Application does not supply the
|
57
|
+
function or data, the facility still operates, and performs
|
58
|
+
whatever part of its purpose remains meaningful, or
|
59
|
+
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
61
|
+
this License applicable to that copy.
|
62
|
+
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
64
|
+
|
65
|
+
The object code form of an Application may incorporate material from
|
66
|
+
a header file that is part of the Library. You may convey such object
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
68
|
+
material is not limited to numerical parameters, data structure
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
71
|
+
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
73
|
+
Library is used in it and that the Library and its use are
|
74
|
+
covered by this License.
|
75
|
+
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
77
|
+
document.
|
78
|
+
|
79
|
+
4. Combined Works.
|
80
|
+
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
82
|
+
taken together, effectively do not restrict modification of the
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
85
|
+
the following:
|
86
|
+
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
88
|
+
the Library is used in it and that the Library and its use are
|
89
|
+
covered by this License.
|
90
|
+
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
92
|
+
document.
|
93
|
+
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
95
|
+
execution, include the copyright notice for the Library among
|
96
|
+
these notices, as well as a reference directing the user to the
|
97
|
+
copies of the GNU GPL and this license document.
|
98
|
+
|
99
|
+
d) Do one of the following:
|
100
|
+
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
102
|
+
License, and the Corresponding Application Code in a form
|
103
|
+
suitable for, and under terms that permit, the user to
|
104
|
+
recombine or relink the Application with a modified version of
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
107
|
+
Corresponding Source.
|
108
|
+
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
111
|
+
a copy of the Library already present on the user's computer
|
112
|
+
system, and (b) will operate properly with a modified version
|
113
|
+
of the Library that is interface-compatible with the Linked
|
114
|
+
Version.
|
115
|
+
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
117
|
+
be required to provide such information under section 6 of the
|
118
|
+
GNU GPL, and only to the extent that such information is
|
119
|
+
necessary to install and execute a modified version of the
|
120
|
+
Combined Work produced by recombining or relinking the
|
121
|
+
Application with a modified version of the Linked Version. (If
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
126
|
+
for conveying Corresponding Source.)
|
127
|
+
|
128
|
+
5. Combined Libraries.
|
129
|
+
|
130
|
+
You may place library facilities that are a work based on the
|
131
|
+
Library side by side in a single library together with other library
|
132
|
+
facilities that are not Applications and are not covered by this
|
133
|
+
License, and convey such a combined library under terms of your
|
134
|
+
choice, if you do both of the following:
|
135
|
+
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
137
|
+
on the Library, uncombined with any other library facilities,
|
138
|
+
conveyed under the terms of this License.
|
139
|
+
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
141
|
+
is a work based on the Library, and explaining where to find the
|
142
|
+
accompanying uncombined form of the same work.
|
143
|
+
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
145
|
+
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
148
|
+
versions will be similar in spirit to the present version, but may
|
149
|
+
differ in detail to address new problems or concerns.
|
150
|
+
|
151
|
+
Each version is given a distinguishing version number. If the
|
152
|
+
Library as you received it specifies that a certain numbered version
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
154
|
+
applies to it, you have the option of following the terms and
|
155
|
+
conditions either of that published version or of any later version
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
160
|
+
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
164
|
+
permanent authorization for you to choose that version for the
|
165
|
+
Library.
|
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# CapicuaGen
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/CapicuaGen`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'CapicuaGen'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install CapicuaGen
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/CapicuaGen.
|
36
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "CapicuaGen/capicua_gen"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/exe/capicuagen.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
=begin
|
4
|
+
|
5
|
+
CapicuaGen
|
6
|
+
|
7
|
+
CapicuaGen es un software que ayuda a la creación automática de
|
8
|
+
sistemas empresariales a través de la definición y ensamblado de
|
9
|
+
diversos generadores de características.
|
10
|
+
|
11
|
+
El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
|
12
|
+
del 2016.
|
13
|
+
|
14
|
+
Puede modificar y distribuir este software, según le plazca, y usarlo
|
15
|
+
para cualquier fin ya sea comercial, personal, educativo, o de cualquier
|
16
|
+
índole, siempre y cuando incluya este mensaje, y se permita acceso el
|
17
|
+
código fuente.
|
18
|
+
|
19
|
+
Este software es código libre, y se licencia bajo LGPL.
|
20
|
+
|
21
|
+
Para más información consultar http://www.gnu.org/licenses/lgpl.html
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'CapicuaGen/capicua_gen'
|
25
|
+
|
26
|
+
|
@@ -0,0 +1,63 @@
|
|
1
|
+
=begin
|
2
|
+
|
3
|
+
CapicuaGen
|
4
|
+
|
5
|
+
CapicuaGen es un software que ayuda a la creación automática de
|
6
|
+
sistemas empresariales a través de la definición y ensamblado de
|
7
|
+
diversos generadores de características.
|
8
|
+
|
9
|
+
El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
|
10
|
+
del 2016.
|
11
|
+
|
12
|
+
Puede modificar y distribuir este software, según le plazca, y usarlo
|
13
|
+
para cualquier fin ya sea comercial, personal, educativo, o de cualquier
|
14
|
+
índole, siempre y cuando incluya este mensaje, y se permita acceso el
|
15
|
+
código fuente.
|
16
|
+
|
17
|
+
Este software es código libre, y se licencia bajo LGPL.
|
18
|
+
|
19
|
+
Para más información consultar http://www.gnu.org/licenses/lgpl.html
|
20
|
+
=end
|
21
|
+
|
22
|
+
|
23
|
+
require 'active_support/core_ext/object/blank'
|
24
|
+
|
25
|
+
require_relative '../../../capicua_gen'
|
26
|
+
|
27
|
+
|
28
|
+
module CapicuaGen
|
29
|
+
|
30
|
+
# Caracteristica generadora de una pantalla de Bienvenida
|
31
|
+
class ExampleFeature < CapicuaGen::TemplateFeature
|
32
|
+
include CapicuaGen
|
33
|
+
|
34
|
+
public
|
35
|
+
|
36
|
+
# Inicializa la caracteristica
|
37
|
+
def initialize(values= {})
|
38
|
+
super(values)
|
39
|
+
|
40
|
+
# Configuro los tipos si estos no han sido configurados previamente
|
41
|
+
self.types= [:example] if self.types.blank?
|
42
|
+
|
43
|
+
# Configuro los templates
|
44
|
+
set_template('generator', Template.new(:file => 'example.erb'))
|
45
|
+
set_template('GemFile', Template.new(:file => 'GemFile.erb'))
|
46
|
+
set_template('instnwnd', Template.new(:file => 'instnwnd.erb'))
|
47
|
+
|
48
|
+
|
49
|
+
end
|
50
|
+
|
51
|
+
# Configura los objetivos de las platillas (despues de establecer el generador)
|
52
|
+
def configure_template_targets
|
53
|
+
|
54
|
+
# Configuro los templates
|
55
|
+
set_template_target('generator', TemplateTarget.new(:out_file => "generator.cs", :types => :example, :copy_only => true))
|
56
|
+
set_template_target('GemFile', TemplateTarget.new(:out_file => "GemFile", :types => :proyect_file, :copy_only => true))
|
57
|
+
set_template_target('instnwnd', TemplateTarget.new(:out_file => "scripts/instnwnd.sql", :types => :proyect_file, :copy_only => true))
|
58
|
+
|
59
|
+
end
|
60
|
+
|
61
|
+
|
62
|
+
end
|
63
|
+
end
|