Class: Rubysmith::Configuration::Model
- Inherits:
-
Struct
- Object
- Struct
- Rubysmith::Configuration::Model
- Defined in:
- lib/rubysmith/configuration/model.rb
Overview
Defines the common configuration content for use throughout the gem.
Instance Attribute Summary collapse
-
#author_email ⇒ Object
Returns the value of attribute author_email.
-
#author_family_name ⇒ Object
Returns the value of attribute author_family_name.
-
#author_given_name ⇒ Object
Returns the value of attribute author_given_name.
-
#author_handle ⇒ Object
Returns the value of attribute author_handle.
-
#author_uri ⇒ Object
Returns the value of attribute author_uri.
-
#build_amazing_print ⇒ Object
Returns the value of attribute build_amazing_print.
-
#build_bootsnap ⇒ Object
Returns the value of attribute build_bootsnap.
-
#build_caliber ⇒ Object
Returns the value of attribute build_caliber.
-
#build_circle_ci ⇒ Object
Returns the value of attribute build_circle_ci.
-
#build_citation ⇒ Object
Returns the value of attribute build_citation.
-
#build_cli ⇒ Object
Returns the value of attribute build_cli.
-
#build_community ⇒ Object
Returns the value of attribute build_community.
-
#build_conduct ⇒ Object
Returns the value of attribute build_conduct.
-
#build_console ⇒ Object
Returns the value of attribute build_console.
-
#build_contributions ⇒ Object
Returns the value of attribute build_contributions.
-
#build_dcoo ⇒ Object
Returns the value of attribute build_dcoo.
-
#build_debug ⇒ Object
Returns the value of attribute build_debug.
-
#build_devcontainer ⇒ Object
Returns the value of attribute build_devcontainer.
-
#build_docker ⇒ Object
Returns the value of attribute build_docker.
-
#build_funding ⇒ Object
Returns the value of attribute build_funding.
-
#build_git ⇒ Object
Returns the value of attribute build_git.
-
#build_git_hub ⇒ Object
Returns the value of attribute build_git_hub.
-
#build_git_hub_ci ⇒ Object
Returns the value of attribute build_git_hub_ci.
-
#build_git_lint ⇒ Object
Returns the value of attribute build_git_lint.
-
#build_guard ⇒ Object
Returns the value of attribute build_guard.
-
#build_irb_kit ⇒ Object
Returns the value of attribute build_irb_kit.
-
#build_license ⇒ Object
Returns the value of attribute build_license.
-
#build_maximum ⇒ Object
Returns the value of attribute build_maximum.
-
#build_minimum ⇒ Object
Returns the value of attribute build_minimum.
-
#build_rake ⇒ Object
Returns the value of attribute build_rake.
-
#build_readme ⇒ Object
Returns the value of attribute build_readme.
-
#build_reek ⇒ Object
Returns the value of attribute build_reek.
-
#build_refinements ⇒ Object
Returns the value of attribute build_refinements.
-
#build_rspec ⇒ Object
Returns the value of attribute build_rspec.
-
#build_rtc ⇒ Object
Returns the value of attribute build_rtc.
-
#build_security ⇒ Object
Returns the value of attribute build_security.
-
#build_setup ⇒ Object
Returns the value of attribute build_setup.
-
#build_simple_cov ⇒ Object
Returns the value of attribute build_simple_cov.
-
#build_versions ⇒ Object
Returns the value of attribute build_versions.
-
#build_zeitwerk ⇒ Object
Returns the value of attribute build_zeitwerk.
-
#citation_affiliation ⇒ Object
Returns the value of attribute citation_affiliation.
-
#citation_message ⇒ Object
Returns the value of attribute citation_message.
-
#citation_orcid ⇒ Object
Returns the value of attribute citation_orcid.
-
#documentation_format ⇒ Object
Returns the value of attribute documentation_format.
-
#license_label ⇒ Object
Returns the value of attribute license_label.
-
#license_name ⇒ Object
Returns the value of attribute license_name.
-
#license_version ⇒ Object
Returns the value of attribute license_version.
-
#loaded_at ⇒ Object
Returns the value of attribute loaded_at.
-
#organization_label ⇒ Object
Returns the value of attribute organization_label.
-
#organization_uri ⇒ Object
Returns the value of attribute organization_uri.
-
#project_name ⇒ Object
Returns the value of attribute project_name.
-
#project_uri_community ⇒ Object
Returns the value of attribute project_uri_community.
-
#project_uri_conduct ⇒ Object
Returns the value of attribute project_uri_conduct.
-
#project_uri_contributions ⇒ Object
Returns the value of attribute project_uri_contributions.
-
#project_uri_dcoo ⇒ Object
Returns the value of attribute project_uri_dcoo.
-
#project_uri_download ⇒ Object
Returns the value of attribute project_uri_download.
-
#project_uri_funding ⇒ Object
Returns the value of attribute project_uri_funding.
-
#project_uri_home ⇒ Object
Returns the value of attribute project_uri_home.
-
#project_uri_issues ⇒ Object
Returns the value of attribute project_uri_issues.
-
#project_uri_license ⇒ Object
Returns the value of attribute project_uri_license.
-
#project_uri_security ⇒ Object
Returns the value of attribute project_uri_security.
-
#project_uri_source ⇒ Object
Returns the value of attribute project_uri_source.
-
#project_uri_versions ⇒ Object
Returns the value of attribute project_uri_versions.
-
#project_version ⇒ Object
Returns the value of attribute project_version.
-
#repository_handle ⇒ Object
Returns the value of attribute repository_handle.
-
#repository_uri ⇒ Object
Returns the value of attribute repository_uri.
-
#target_root ⇒ Object
Returns the value of attribute target_root.
-
#template_path ⇒ Object
Returns the value of attribute template_path.
-
#template_roots ⇒ Object
Returns the value of attribute template_roots.
Instance Method Summary collapse
- #ascii_doc? ⇒ Boolean
- #author_name ⇒ Object
- #computed_project_uri_community ⇒ Object
- #computed_project_uri_conduct ⇒ Object
- #computed_project_uri_contributions ⇒ Object
- #computed_project_uri_dcoo ⇒ Object
- #computed_project_uri_download ⇒ Object
- #computed_project_uri_funding ⇒ Object
- #computed_project_uri_home ⇒ Object
- #computed_project_uri_issues ⇒ Object
- #computed_project_uri_license ⇒ Object
- #computed_project_uri_security ⇒ Object
- #computed_project_uri_source ⇒ Object
- #computed_project_uri_versions ⇒ Object
- #license_label_version ⇒ Object
- #markdown? ⇒ Boolean
- #maximize ⇒ Object
- #minimize ⇒ Object
- #pathway ⇒ Object
- #project_class ⇒ Object
- #project_label ⇒ Object
- #project_levels ⇒ Object
- #project_namespaced_class ⇒ Object
- #project_path ⇒ Object
- #project_root ⇒ Object
- #template_root ⇒ Object
Instance Attribute Details
#author_email ⇒ Object
Returns the value of attribute author_email
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def @author_email end |
#author_family_name ⇒ Object
Returns the value of attribute author_family_name
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def @author_family_name end |
#author_given_name ⇒ Object
Returns the value of attribute author_given_name
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def @author_given_name end |
#author_handle ⇒ Object
Returns the value of attribute author_handle
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def @author_handle end |
#author_uri ⇒ Object
Returns the value of attribute author_uri
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def @author_uri end |
#build_amazing_print ⇒ Object
Returns the value of attribute build_amazing_print
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_amazing_print @build_amazing_print end |
#build_bootsnap ⇒ Object
Returns the value of attribute build_bootsnap
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_bootsnap @build_bootsnap end |
#build_caliber ⇒ Object
Returns the value of attribute build_caliber
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_caliber @build_caliber end |
#build_circle_ci ⇒ Object
Returns the value of attribute build_circle_ci
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_circle_ci @build_circle_ci end |
#build_citation ⇒ Object
Returns the value of attribute build_citation
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_citation @build_citation end |
#build_cli ⇒ Object
Returns the value of attribute build_cli
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_cli @build_cli end |
#build_community ⇒ Object
Returns the value of attribute build_community
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_community @build_community end |
#build_conduct ⇒ Object
Returns the value of attribute build_conduct
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_conduct @build_conduct end |
#build_console ⇒ Object
Returns the value of attribute build_console
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_console @build_console end |
#build_contributions ⇒ Object
Returns the value of attribute build_contributions
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_contributions @build_contributions end |
#build_dcoo ⇒ Object
Returns the value of attribute build_dcoo
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_dcoo @build_dcoo end |
#build_debug ⇒ Object
Returns the value of attribute build_debug
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_debug @build_debug end |
#build_devcontainer ⇒ Object
Returns the value of attribute build_devcontainer
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_devcontainer @build_devcontainer end |
#build_docker ⇒ Object
Returns the value of attribute build_docker
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_docker @build_docker end |
#build_funding ⇒ Object
Returns the value of attribute build_funding
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_funding @build_funding end |
#build_git ⇒ Object
Returns the value of attribute build_git
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_git @build_git end |
#build_git_hub ⇒ Object
Returns the value of attribute build_git_hub
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_git_hub @build_git_hub end |
#build_git_hub_ci ⇒ Object
Returns the value of attribute build_git_hub_ci
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_git_hub_ci @build_git_hub_ci end |
#build_git_lint ⇒ Object
Returns the value of attribute build_git_lint
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_git_lint @build_git_lint end |
#build_guard ⇒ Object
Returns the value of attribute build_guard
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_guard @build_guard end |
#build_irb_kit ⇒ Object
Returns the value of attribute build_irb_kit
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_irb_kit @build_irb_kit end |
#build_license ⇒ Object
Returns the value of attribute build_license
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_license @build_license end |
#build_maximum ⇒ Object
Returns the value of attribute build_maximum
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_maximum @build_maximum end |
#build_minimum ⇒ Object
Returns the value of attribute build_minimum
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_minimum @build_minimum end |
#build_rake ⇒ Object
Returns the value of attribute build_rake
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_rake @build_rake end |
#build_readme ⇒ Object
Returns the value of attribute build_readme
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_readme @build_readme end |
#build_reek ⇒ Object
Returns the value of attribute build_reek
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_reek @build_reek end |
#build_refinements ⇒ Object
Returns the value of attribute build_refinements
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_refinements @build_refinements end |
#build_rspec ⇒ Object
Returns the value of attribute build_rspec
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_rspec @build_rspec end |
#build_rtc ⇒ Object
Returns the value of attribute build_rtc
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_rtc @build_rtc end |
#build_security ⇒ Object
Returns the value of attribute build_security
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_security @build_security end |
#build_setup ⇒ Object
Returns the value of attribute build_setup
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_setup @build_setup end |
#build_simple_cov ⇒ Object
Returns the value of attribute build_simple_cov
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_simple_cov @build_simple_cov end |
#build_versions ⇒ Object
Returns the value of attribute build_versions
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_versions @build_versions end |
#build_zeitwerk ⇒ Object
Returns the value of attribute build_zeitwerk
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def build_zeitwerk @build_zeitwerk end |
#citation_affiliation ⇒ Object
Returns the value of attribute citation_affiliation
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def citation_affiliation @citation_affiliation end |
#citation_message ⇒ Object
Returns the value of attribute citation_message
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def @citation_message end |
#citation_orcid ⇒ Object
Returns the value of attribute citation_orcid
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def citation_orcid @citation_orcid end |
#documentation_format ⇒ Object
Returns the value of attribute documentation_format
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def documentation_format @documentation_format end |
#license_label ⇒ Object
Returns the value of attribute license_label
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def license_label @license_label end |
#license_name ⇒ Object
Returns the value of attribute license_name
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def license_name @license_name end |
#license_version ⇒ Object
Returns the value of attribute license_version
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def license_version @license_version end |
#loaded_at ⇒ Object
Returns the value of attribute loaded_at
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def loaded_at @loaded_at end |
#organization_label ⇒ Object
Returns the value of attribute organization_label
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def organization_label @organization_label end |
#organization_uri ⇒ Object
Returns the value of attribute organization_uri
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def organization_uri @organization_uri end |
#project_name ⇒ Object
Returns the value of attribute project_name
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def project_name @project_name end |
#project_uri_community ⇒ Object
Returns the value of attribute project_uri_community
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def project_uri_community @project_uri_community end |
#project_uri_conduct ⇒ Object
Returns the value of attribute project_uri_conduct
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def project_uri_conduct @project_uri_conduct end |
#project_uri_contributions ⇒ Object
Returns the value of attribute project_uri_contributions
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def project_uri_contributions @project_uri_contributions end |
#project_uri_dcoo ⇒ Object
Returns the value of attribute project_uri_dcoo
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def project_uri_dcoo @project_uri_dcoo end |
#project_uri_download ⇒ Object
Returns the value of attribute project_uri_download
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def project_uri_download @project_uri_download end |
#project_uri_funding ⇒ Object
Returns the value of attribute project_uri_funding
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def project_uri_funding @project_uri_funding end |
#project_uri_home ⇒ Object
Returns the value of attribute project_uri_home
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def project_uri_home @project_uri_home end |
#project_uri_issues ⇒ Object
Returns the value of attribute project_uri_issues
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def project_uri_issues @project_uri_issues end |
#project_uri_license ⇒ Object
Returns the value of attribute project_uri_license
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def project_uri_license @project_uri_license end |
#project_uri_security ⇒ Object
Returns the value of attribute project_uri_security
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def project_uri_security @project_uri_security end |
#project_uri_source ⇒ Object
Returns the value of attribute project_uri_source
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def project_uri_source @project_uri_source end |
#project_uri_versions ⇒ Object
Returns the value of attribute project_uri_versions
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def project_uri_versions @project_uri_versions end |
#project_version ⇒ Object
Returns the value of attribute project_version
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def project_version @project_version end |
#repository_handle ⇒ Object
Returns the value of attribute repository_handle
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def repository_handle @repository_handle end |
#repository_uri ⇒ Object
Returns the value of attribute repository_uri
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def repository_uri @repository_uri end |
#target_root ⇒ Object
Returns the value of attribute target_root
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def target_root @target_root end |
#template_path ⇒ Object
Returns the value of attribute template_path
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def template_path @template_path end |
#template_roots ⇒ Object
Returns the value of attribute template_roots
11 12 13 |
# File 'lib/rubysmith/configuration/model.rb', line 11 def template_roots @template_roots end |
Instance Method Details
#ascii_doc? ⇒ Boolean
130 |
# File 'lib/rubysmith/configuration/model.rb', line 130 def ascii_doc? = documentation_format == "adoc" |
#author_name ⇒ Object
90 |
# File 'lib/rubysmith/configuration/model.rb', line 90 def = [, ].compress.join(" ") |
#computed_project_uri_community ⇒ Object
106 |
# File 'lib/rubysmith/configuration/model.rb', line 106 def computed_project_uri_community = format_uri(__method__) |
#computed_project_uri_conduct ⇒ Object
108 |
# File 'lib/rubysmith/configuration/model.rb', line 108 def computed_project_uri_conduct = format_uri(__method__) |
#computed_project_uri_contributions ⇒ Object
110 |
# File 'lib/rubysmith/configuration/model.rb', line 110 def computed_project_uri_contributions = format_uri(__method__) |
#computed_project_uri_dcoo ⇒ Object
112 |
# File 'lib/rubysmith/configuration/model.rb', line 112 def computed_project_uri_dcoo = format_uri(__method__) |
#computed_project_uri_download ⇒ Object
114 |
# File 'lib/rubysmith/configuration/model.rb', line 114 def computed_project_uri_download = format_uri(__method__) |
#computed_project_uri_funding ⇒ Object
116 |
# File 'lib/rubysmith/configuration/model.rb', line 116 def computed_project_uri_funding = format_uri(__method__) |
#computed_project_uri_home ⇒ Object
118 |
# File 'lib/rubysmith/configuration/model.rb', line 118 def computed_project_uri_home = format_uri(__method__) |
#computed_project_uri_issues ⇒ Object
120 |
# File 'lib/rubysmith/configuration/model.rb', line 120 def computed_project_uri_issues = format_uri(__method__) |
#computed_project_uri_license ⇒ Object
122 |
# File 'lib/rubysmith/configuration/model.rb', line 122 def computed_project_uri_license = format_uri(__method__) |
#computed_project_uri_security ⇒ Object
124 |
# File 'lib/rubysmith/configuration/model.rb', line 124 def computed_project_uri_security = format_uri(__method__) |
#computed_project_uri_source ⇒ Object
126 |
# File 'lib/rubysmith/configuration/model.rb', line 126 def computed_project_uri_source = format_uri(__method__) |
#computed_project_uri_versions ⇒ Object
128 |
# File 'lib/rubysmith/configuration/model.rb', line 128 def computed_project_uri_versions = format_uri(__method__) |
#license_label_version ⇒ Object
92 |
# File 'lib/rubysmith/configuration/model.rb', line 92 def license_label_version = [license_label, license_version].compress.join("-") |
#markdown? ⇒ Boolean
132 |
# File 'lib/rubysmith/configuration/model.rb', line 132 def markdown? = documentation_format == "md" |
#maximize ⇒ Object
86 |
# File 'lib/rubysmith/configuration/model.rb', line 86 def maximize = true |
#minimize ⇒ Object
88 |
# File 'lib/rubysmith/configuration/model.rb', line 88 def minimize = false |
#pathway ⇒ Object
134 135 136 |
# File 'lib/rubysmith/configuration/model.rb', line 134 def pathway Pathway[start_root: template_root, start_path: template_path, end_root: target_root] end |
#project_class ⇒ Object
94 |
# File 'lib/rubysmith/configuration/model.rb', line 94 def project_class = project_namespaced_class.split("::").last |
#project_label ⇒ Object
98 |
# File 'lib/rubysmith/configuration/model.rb', line 98 def project_label = project_name.titleize |
#project_levels ⇒ Object
100 |
# File 'lib/rubysmith/configuration/model.rb', line 100 def project_levels = project_namespaced_class.split("::").size - 1 |
#project_namespaced_class ⇒ Object
96 |
# File 'lib/rubysmith/configuration/model.rb', line 96 def project_namespaced_class = project_name.camelcase |
#project_path ⇒ Object
102 |
# File 'lib/rubysmith/configuration/model.rb', line 102 def project_path = project_name.snakecase |
#project_root ⇒ Object
104 |
# File 'lib/rubysmith/configuration/model.rb', line 104 def project_root = target_root.join(project_name) |
#template_root ⇒ Object
138 139 140 141 |
# File 'lib/rubysmith/configuration/model.rb', line 138 def template_root Array(template_roots).map(&:expand_path) .find { |path| path.join(String(template_path)).exist? } end |