Class: HecksDomain::CLI::New
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- HecksDomain::CLI::New
- Includes:
- Thor::Actions
- Defined in:
- lib/cli/new.rb
Overview
Generate a new domain project
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
13 14 15 |
# File 'lib/cli/new.rb', line 13 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#create_hexagon_folder ⇒ Object
25 26 27 28 |
# File 'lib/cli/new.rb', line 25 def create_hexagon_folder return unless [:nobuilder] directory('templates/domain', ".") end |
#load_from_builder ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/cli/new.rb', line 17 def load_from_builder return if [:nobuilder] CommandBuilder.new( name: File.basename(Dir.getwd), dry_run: ![:dry_run].nil? ).call end |