Class: Pressman::Generator::App

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/pressman/generator/app.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



10
11
12
# File 'lib/pressman/generator/app.rb', line 10

def self.source_root
  File.dirname(__FILE__)
end

Instance Method Details

#create_base_projectObject

Raises:

  • (GeneratorArgumentsError)


14
15
16
17
# File 'lib/pressman/generator/app.rb', line 14

def create_base_project
  raise GeneratorArgumentsError if app_name.nil?
  directory "app", "#{app_name}"
end