Class: RevealCK::Builders::SlidesBuilder
- Inherits:
-
CreationTask
- Object
- CreationTask
- RevealCK::Builders::SlidesBuilder
- Defined in:
- lib/reveal-ck/builders/slides_builder.rb
Overview
Given a location of reveal.js files, reveal-ck files, and slides file to work with, and a place to put it all.. this class creates a presentation.
Instance Attribute Summary collapse
-
#application ⇒ Object
readonly
Returns the value of attribute application.
-
#gem_dir ⇒ Object
readonly
Returns the value of attribute gem_dir.
-
#output_dir ⇒ Object
readonly
Returns the value of attribute output_dir.
-
#reveal_js_dir ⇒ Object
readonly
Returns the value of attribute reveal_js_dir.
-
#slides_file ⇒ Object
readonly
Returns the value of attribute slides_file.
-
#user_dir ⇒ Object
readonly
Returns the value of attribute user_dir.
Attributes inherited from CreationTask
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(args) ⇒ SlidesBuilder
constructor
A new instance of SlidesBuilder.
Methods inherited from CreationTask
Methods included from RakeAware
#copy_file, #create_directory, #task
Methods included from Retrieve
Constructor Details
#initialize(args) ⇒ SlidesBuilder
Returns a new instance of SlidesBuilder.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/reveal-ck/builders/slides_builder.rb', line 13 def initialize(args) @user_dir = retrieve(:user_dir, args) @gem_dir = retrieve(:gem_dir, args) @reveal_js_dir = File.join(gem_dir, 'files', 'reveal.js') @output_dir = retrieve(:output_dir, args) @slides_file = retrieve(:slides_file, args) @application = Rake::Application.new @config = Config.new @things_to_create = Set.new end |
Instance Attribute Details
#application ⇒ Object (readonly)
Returns the value of attribute application.
12 13 14 |
# File 'lib/reveal-ck/builders/slides_builder.rb', line 12 def application @application end |
#gem_dir ⇒ Object (readonly)
Returns the value of attribute gem_dir.
10 11 12 |
# File 'lib/reveal-ck/builders/slides_builder.rb', line 10 def gem_dir @gem_dir end |
#output_dir ⇒ Object (readonly)
Returns the value of attribute output_dir.
11 12 13 |
# File 'lib/reveal-ck/builders/slides_builder.rb', line 11 def output_dir @output_dir end |
#reveal_js_dir ⇒ Object (readonly)
Returns the value of attribute reveal_js_dir.
10 11 12 |
# File 'lib/reveal-ck/builders/slides_builder.rb', line 10 def reveal_js_dir @reveal_js_dir end |
#slides_file ⇒ Object (readonly)
Returns the value of attribute slides_file.
11 12 13 |
# File 'lib/reveal-ck/builders/slides_builder.rb', line 11 def @slides_file end |
#user_dir ⇒ Object (readonly)
Returns the value of attribute user_dir.
10 11 12 |
# File 'lib/reveal-ck/builders/slides_builder.rb', line 10 def user_dir @user_dir end |
Instance Method Details
#build ⇒ Object
24 25 26 |
# File 'lib/reveal-ck/builders/slides_builder.rb', line 24 def build application['slides_builder'].invoke end |