Sha256: 4772f4048881e747ee25e9b793c7f5e1dc5cdff008d214b07bdc24b0f170ce7d
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 Bytes
Contents
require "thor" require "pathname" module Penguin class CLI < Thor include Thor::Actions def self.source_root File.expand_path("../../../assets", __FILE__) end default_task :start desc "start", "Start your presentation" def start if Pathname.new("deck.rb").exist? say "Starting Penguin... Press control-C to stop.", :green Application.run! else say "You must be inside a project. Run `penguin new NAME` to create one.", :red end end desc "new NAME", "Create a new Penguin project called NAME" def new(name) directory "template", name say "You're ready to slide with Penguin!", :green end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
penguin-0.0.1.beta1 | lib/penguin/cli.rb |