Class: Bootcamp::DrillInstructor
- Defined in:
- lib/bootcamp/drill_instructor.rb
Overview
DrillInstructor controls the bootcamp with all the different commands
Instance Method Summary collapse
- #compress(project) ⇒ Object
- #convert(project) ⇒ Object
- #deploy(project) ⇒ Object
- #generate(project = "hello_world") ⇒ Object
- #promote(project) ⇒ Object
Instance Method Details
#compress(project) ⇒ Object
31 32 33 |
# File 'lib/bootcamp/drill_instructor.rb', line 31 def compress(project) say "Compression not ready yet", :red end |
#convert(project) ⇒ Object
41 42 43 |
# File 'lib/bootcamp/drill_instructor.rb', line 41 def convert(project) say "Conversions not ready yet", :red end |
#deploy(project) ⇒ Object
36 37 38 |
# File 'lib/bootcamp/drill_instructor.rb', line 36 def deploy(project) say "Deployment not ready yet", :red end |
#generate(project = "hello_world") ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/bootcamp/drill_instructor.rb', line 11 def generate(project = "hello_world") @project = project say "Generating #{@project} plugin", :blue apply File.(File.join("manifest", "bootstrap.rb"), File.dirname(__FILE__)) apply File.("manifest/html.rb", File.dirname(__FILE__)) apply File.("manifest/#{[:framework]}.rb", File.dirname(__FILE__)) armory = Armory.new end |
#promote(project) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/bootcamp/drill_instructor.rb', line 23 def promote(project) # :patch, :minor, :major level = [:level] say "Promotions not ready yet", :red end |