Sha256: 3ada4e4d19345cfda7f72d52ff93406db402233eb00832cf0935a16762bdcc60

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

#!/usr/bin/env ruby
require 'gli'
require 'reveal-ck'

# Setup rake and load needed parts of rakelib so that rake tasks can be
# invoked programmatically
require 'rake'
rakelib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'rakelib'))
load File.join(rakelib, 'presentation.rake')

include GLI::App

program_desc 'A reveal.js construction kit'

version RevealCK::VERSION

desc 'Generate reveal.js slides'
arg_name 'Tranforms your slides.haml into a presentation'
command :generate do |c|
  c.action do |global_options,options,args|
    Rake::Task['presentation'].invoke
  end
end

pre do |global,command,options,args|
  # Pre logic here
  # Return true to proceed; false to abort and not call the
  # chosen command
  # Use skips_pre before a command to skip this block
  # on that command only
  true
end

post do |global,command,options,args|
  # Post logic here
  # Use skips_post before a command to skip this
  # block on that command only
end

on_error do |exception|
  # Error logic here
  # return false to skip default error handling
  true
end

exit run(ARGV)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reveal-ck-0.1.2 bin/reveal-ck
reveal-ck-0.1.1 bin/reveal-ck
reveal-ck-0.1.0 bin/reveal-ck