Class: Capsium::Converters::Jekyll
- Inherits:
-
Object
- Object
- Capsium::Converters::Jekyll
- Defined in:
- lib/capsium/converters/jekyll.rb
Instance Method Summary collapse
- #convert ⇒ Object
-
#initialize(package_file, output_directory) ⇒ Jekyll
constructor
A new instance of Jekyll.
Constructor Details
#initialize(package_file, output_directory) ⇒ Jekyll
Returns a new instance of Jekyll.
11 12 13 14 |
# File 'lib/capsium/converters/jekyll.rb', line 11 def initialize(package_file, output_directory) @package_file = package_file @output_directory = output_directory end |
Instance Method Details
#convert ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/capsium/converters/jekyll.rb', line 16 def convert package = Capsium::Package.new(@package_file) prepare_output_directory write_config_yml(package) copy_content_files(package) generate_index_html(package) puts "Capsium package converted to Jekyll site at #{@output_directory}" end |