Class: KStarter::Schema::BaseProject

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/k_starter/schema.rb

Overview

Base class for project data

Direct Known Subclasses

GemProject, NuxtProject, RailsProject, SvelteProject

Instance Method Summary collapse

Instance Method Details

#expanded_project_pathObject



48
49
50
# File 'lib/k_starter/schema.rb', line 48

def expanded_project_path
  File.join(expanded_root_path, name)
end

#expanded_root_pathObject



52
53
54
# File 'lib/k_starter/schema.rb', line 52

def expanded_root_path
  File.expand_path(root_path)
end

#github_account_typeObject



56
57
58
# File 'lib/k_starter/schema.rb', line 56

def 
  github_key == App.config.github_user ? :user : :organization
end

#github_organizationObject



60
61
62
# File 'lib/k_starter/schema.rb', line 60

def github_organization
   == :organization ? github_key : nil
end