Class: FoundersTemplate::ConfigFile
- Inherits:
-
TemplateFile
- Object
- TemplateFile
- FoundersTemplate::ConfigFile
- Defined in:
- lib/founders_template/config_file.rb
Instance Attribute Summary collapse
-
#github_org ⇒ Object
Returns the value of attribute github_org.
-
#github_repo ⇒ Object
Returns the value of attribute github_repo.
-
#name ⇒ Object
Returns the value of attribute name.
- #short_name ⇒ Object
Instance Method Summary collapse
Methods inherited from TemplateFile
#binding_for_render, #initialize, output_file, #output_file, required_keys, root_key, template_file, #template_file, #valid?
Constructor Details
This class inherits a constructor from FoundersTemplate::TemplateFile
Instance Attribute Details
#github_org ⇒ Object
Returns the value of attribute github_org.
14 15 16 |
# File 'lib/founders_template/config_file.rb', line 14 def github_org @github_org end |
#github_repo ⇒ Object
Returns the value of attribute github_repo.
14 15 16 |
# File 'lib/founders_template/config_file.rb', line 14 def github_repo @github_repo end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/founders_template/config_file.rb', line 14 def name @name end |
#short_name ⇒ Object
17 18 19 |
# File 'lib/founders_template/config_file.rb', line 17 def short_name @short_name ||= name.split.map(&:chr).join.downcase end |
Instance Method Details
#aws_region ⇒ Object
25 26 27 |
# File 'lib/founders_template/config_file.rb', line 25 def aws_region ENV['AWS_REGION'] end |
#slugified_name ⇒ Object
21 22 23 |
# File 'lib/founders_template/config_file.rb', line 21 def slugified_name name.parameterize end |