Class: Chloe::Tasks::Initialize
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Chloe::Tasks::Initialize
- Includes:
- Thor::Actions
- Defined in:
- lib/chloe/tasks/initialize.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
8 9 10 |
# File 'lib/chloe/tasks/initialize.rb', line 8 def self.source_root File.dirname(File.(File.join(__FILE__, '..'))) end |
Instance Method Details
#chmod_executable ⇒ Object
16 17 18 |
# File 'lib/chloe/tasks/initialize.rb', line 16 def chmod_executable chmod(name, 0755) end |
#create_example ⇒ Object
20 21 22 |
# File 'lib/chloe/tasks/initialize.rb', line 20 def create_example template('templates/example.rb', '.chloe/example.rb') end |
#create_executable ⇒ Object
12 13 14 |
# File 'lib/chloe/tasks/initialize.rb', line 12 def create_executable template('templates/executable', name) end |