Class: Susanoo::CLI::ProjectInterface
- Inherits:
-
Thor
- Object
- Thor
- Susanoo::CLI::ProjectInterface
- Includes:
- Commands::Build, Commands::Console, Commands::Generate, Commands::Run, Commands::Server, Thor::Actions
- Defined in:
- lib/susanoo/cli/project_interface.rb
Overview
Project wide Thor
class which is responsible for
each command that user execute inside project
Class Method Summary collapse
-
.root=(path) ⇒ Object
Set the project root.
-
.source_root ⇒ Object
Set source paths for current generator.
Instance Method Summary collapse
- #project_root ⇒ Object private
Methods included from Commands::Generate
#get_the_generator_class, #print_generator_list
Methods included from Commands::Server
#built?, #not_built, #static_server_for
Class Method Details
.root=(path) ⇒ Object
Set the project root
17 18 19 20 |
# File 'lib/susanoo/cli/project_interface.rb', line 17 def self.root=(path) @@root = path Susanoo::Project.path = path end |
.source_root ⇒ Object
Set source paths for current generator
23 24 25 |
# File 'lib/susanoo/cli/project_interface.rb', line 23 def self.source_root "#{@@root}/src" end |