Sha256: aecc1ee762f7f6e39907b7e30ea2dea0fef1bd3d77bc2299609499f4cc0567f4
Contents?: true
Size: 1.04 KB
Versions: 22
Compression:
Stored size: 1.04 KB
Contents
module RevealCK module Commands # This Command is responsible for implementing the idea behind # "reveal-ck generate." class Generate include Retrieve attr_reader :slides_builder, :slides_file, :stdout_prefix def initialize(args) user_dir = retrieve(:user_dir, args) gem_dir = retrieve(:gem_dir, args) output_dir = retrieve(:output_dir, args) @stdout_prefix = args[:stdout_prefix] || '' @slides_file = retrieve(:slides_file, args) @slides_builder = RevealCK::Builders::SlidesBuilder.new(user_dir: user_dir, gem_dir: gem_dir, output_dir: output_dir, slides_file: slides_file) end def run msg = "Generating slides for '#{slides_file}'.." msg = "#{stdout_prefix} #{msg}" unless stdout_prefix.empty? puts msg slides_builder.prepare slides_builder.build end end end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
reveal-ck-0.5.1 | lib/reveal-ck/commands/generate.rb |
reveal-ck-0.5.0 | lib/reveal-ck/commands/generate.rb |