Class: Textualize::New

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/textualize/tasks/new.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



8
9
10
# File 'lib/textualize/tasks/new.rb', line 8

def self.source_root
  __dir__.chomp('/tasks')
end

Instance Method Details

#create_application_directoryObject



12
13
14
# File 'lib/textualize/tasks/new.rb', line 12

def create_application_directory
  directory "#{lib_directory}/templates/new/", app_name
end

#installation_completeObject



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/textualize/tasks/new.rb', line 16

def installation_complete
  puts <<-POST_INSTALL_MESSAGE
♪┏(°.°)┛┗(°.°)┓┗(°.°)┛┏(°.°)┓┏(°.°)┛┗(°.°)┓┗(°.°)┛┏(°.°)┓♪

Thank you for installing textualize, please finish setting up your
project with: `cd #{app_name} && npm install`

In your new folder you can now use the following commands:

* textualize server
* textualize request_specs
* textualize seeds
* textualize factories

Each command depends on gulp being installed. Please install gulp globally with
``npm install -g gulp`` and locally with ``npm install``.

♪┏(°.°)┛┗(°.°)┓┗(°.°)┛┏(°.°)┓┏(°.°)┛┗(°.°)┓┗(°.°)┛┏(°.°)┓♪
  POST_INSTALL_MESSAGE
end