class Presentation::CLI

Public Instance Methods

new(name) click to toggle source
# File lib/presentation/cli.rb, line 10
def new(name)
  create_file "#{name}/presentation.rb" do
    File.read File.expand_path("../../../examples/presentation.rb", __FILE__)
  end
end
start(name = nil) click to toggle source

method_option %w(theme -t) => ‘theme.rb’

# File lib/presentation/cli.rb, line 18
def start(name = nil)
  name ||= 'presentation.rb'
  p = Presentation.new
  p.load_slides_from_file File.expand_path(name)
  # TODO: p.load_theme File.expand_path(options[:theme])
  p.start
end