class Susanoo::CLI::ProjectInterface
Project
wide `Thor` class which is responsible for each command that user execute inside project
Public Class Methods
root=(path)
click to toggle source
Set the project root
# File lib/susanoo/cli/project_interface.rb, line 17 def self.root=(path) @@root = path Susanoo::Project.path = path end
source_root()
click to toggle source
Set source paths for current generator
# File lib/susanoo/cli/project_interface.rb, line 23 def self.source_root "#{@@root}/src" end
Private Instance Methods
project_root()
click to toggle source
# File lib/susanoo/cli/project_interface.rb, line 36 def project_root Susanoo::Project.path end