Sha256: 54b1ac2e6f5a355f24a7c95ccf960d11553c53069d5426b5915f1f63df4a1a93
Contents?: true
Size: 1.51 KB
Versions: 1
Compression:
Stored size: 1.51 KB
Contents
module Bootcamp # DrillInstructor controls the bootcamp with all the different commands class DrillInstructor < Bootcamp::Depot source_root File.dirname(__FILE__) desc "generate [PROJECT]", "creates a new project with the name PROJECT" map "g" => :generate method_options %w(framework -f) => "core" method_options %w(test_suite -t) => "jasmine" def generate(project = "hello_world") @project = project say "Generating #{@project} plugin", :blue apply File.expand_path(File.join("manifest", "bootstrap.rb"), File.dirname(__FILE__)) apply File.expand_path("manifest/html.rb", File.dirname(__FILE__)) apply File.expand_path("manifest/#{options[:framework]}.rb", File.dirname(__FILE__)) armory = Armory.new end desc "promote PROJECT [LEVEL]", "give your PROJECT a promotion updating the verion by patch, minor, or major" method_options %w(level -l) => "patch" def promote(project) # :patch, :minor, :major level = options[:level] say "Promotions not ready yet", :red end desc "compress PROJECT", "minify the scripts for PROJECT" def compress(project) say "Compression not ready yet", :red end desc "deploy PROJECT", "deploys the PROJECT to JSHQ.org" def deploy(project) say "Deployment not ready yet", :red end desc "convert PROJECT", "converts PROJECT into CoffeeScript" def convert(project) say "Conversions not ready yet", :red end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootcamp-0.1.4 | lib/bootcamp/drill_instructor.rb |