Class: Ror::Generators::Init
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Ror::Generators::Init
- Includes:
- Thor::Actions
- Defined in:
- lib/ror/generators/init.rb
Constant Summary collapse
- ROR_DIR =
'.ror'.freeze
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
10 11 12 |
# File 'lib/ror/generators/init.rb', line 10 def self.source_root File.dirname(__FILE__) + "/templates" end |
Instance Method Details
#copy_rorfile ⇒ Object
18 19 20 |
# File 'lib/ror/generators/init.rb', line 18 def copy_rorfile template("Rorfile.tt", "#{ROR_DIR}/Rorfile") end |
#copy_rorrcfile ⇒ Object
22 23 24 |
# File 'lib/ror/generators/init.rb', line 22 def copy_rorrcfile template("rorrc.tt", "#{ROR_DIR}/.rorrc") end |
#create_ror_dir ⇒ Object
14 15 16 |
# File 'lib/ror/generators/init.rb', line 14 def create_ror_dir empty_directory(ROR_DIR) end |