Class: EmberjsCouchapp::AppGenerator

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/emberjs-couchapp/app_generator.rb

Instance Method Summary collapse

Instance Method Details

#createObject



19
20
21
22
# File 'lib/emberjs-couchapp/app_generator.rb', line 19

def create
  self.destination_root = File.expand_path(path, destination_root)
  directory '.'
end

#nameObject



11
12
13
# File 'lib/emberjs-couchapp/app_generator.rb', line 11

def name
  File.basename(path)
end

#titleObject



15
16
17
# File 'lib/emberjs-couchapp/app_generator.rb', line 15

def title
  name.capitalize
end