Class: Bowline::Generators::ApplicationGenerator

Inherits:
NamedGenerator show all
Defined in:
lib/bowline/generators/application.rb

Instance Method Summary collapse

Methods inherited from NamedGenerator

#class_name, #file_name, #initialize, #symbol_name

Methods inherited from Generator

source_root, #with_modules

Constructor Details

This class inherits a constructor from Bowline::Generators::NamedGenerator

Instance Method Details

#app_idObject



7
8
9
# File 'lib/bowline/generators/application.rb', line 7

def app_id
  ['bowline', name].join('.')
end

#destination_rootObject



11
12
13
14
# File 'lib/bowline/generators/application.rb', line 11

def destination_root
  # Todo - only works relative
  File.join(@destination_root, base_name)
end

#full_nameObject



16
17
18
# File 'lib/bowline/generators/application.rb', line 16

def full_name
  File.basename(name).camel_case
end