Class: Swiftly::ConfigSwiftlyfileGenerator
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Swiftly::ConfigSwiftlyfileGenerator
- Includes:
- Thor::Actions
- Defined in:
- lib/swiftly/config_swiftlyfile_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
14 15 16 |
# File 'lib/swiftly/config_swiftlyfile_generator.rb', line 14 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#create ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/swiftly/config_swiftlyfile_generator.rb', line 18 def create settings = Swiftly::Config.load :global template( File.join( 'templates', 'swiftlyfile.erb' ), File.join( settings[:sites_path], 'Swiftlyfile', ) ) end |