Class: KStarter::Schema::BaseProject
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- KStarter::Schema::BaseProject
show all
- Defined in:
- lib/k_starter/schema.rb
Overview
Base class for project data
Instance Method Summary
collapse
Instance Method Details
#expanded_project_path ⇒ Object
48
49
50
|
# File 'lib/k_starter/schema.rb', line 48
def expanded_project_path
File.join(expanded_root_path, name)
end
|
#expanded_root_path ⇒ Object
52
53
54
|
# File 'lib/k_starter/schema.rb', line 52
def expanded_root_path
File.expand_path(root_path)
end
|
#github_account_type ⇒ Object
56
57
58
|
# File 'lib/k_starter/schema.rb', line 56
def github_account_type
github_key == App.config.github_user ? :user : :organization
end
|
#github_organization ⇒ Object
60
61
62
|
# File 'lib/k_starter/schema.rb', line 60
def github_organization
github_account_type == :organization ? github_key : nil
end
|