Class: FoundersTemplate::ConfigFile

Inherits:
TemplateFile show all
Defined in:
lib/founders_template/config_file.rb

Instance Attribute Summary collapse

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_orgObject

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_repoObject

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

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/founders_template/config_file.rb', line 14

def name
  @name
end

#short_nameObject



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_regionObject



25
26
27
# File 'lib/founders_template/config_file.rb', line 25

def aws_region
  ENV['AWS_REGION']
end

#slugified_nameObject



21
22
23
# File 'lib/founders_template/config_file.rb', line 21

def slugified_name
  name.parameterize
end