Class: Guides::New
- Inherits:
-
Thor
- Object
- Thor
- Guides::New
- Includes:
- Thor::Actions
- Defined in:
- lib/guides/new.rb
Instance Method Summary collapse
Instance Method Details
#copy(destination, name) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/guides/new.rb', line 8 def copy(destination, name) self.destination_root = File.(destination) self.title = name directory "source" empty_directory "assets/stylesheets" empty_directory "assets/images" empty_directory "assets/javascripts" template "guides.yml.tt", "guides.yml" create_file "assets/stylesheets/overrides.style.css" create_file "assets/stylesheets/overrides.print.css" end |