Class: Bootcamp::Recruit
- Inherits:
-
Object
- Object
- Bootcamp::Recruit
- Includes:
- Depot::Tasks
- Defined in:
- lib/bootcamp/recruit.rb
Overview
A recruit is only given orders by a drill instructor
Instance Attribute Summary collapse
-
#framework ⇒ Object
Returns the value of attribute framework.
-
#project ⇒ Object
Returns the value of attribute project.
-
#test_suite ⇒ Object
Returns the value of attribute test_suite.
Instance Method Summary collapse
-
#initialize(orders = {}) ⇒ Recruit
constructor
orders are the options given to a recruit.
-
#initialize_plugin ⇒ Object
Set actual plugin.
-
#prepare_tests ⇒ Object
Create plugin tests.
-
#recon_library ⇒ Object
Get the library based off the project.
-
#run_manifest ⇒ Object
Read proper manifest documents.
-
#setup_project ⇒ Object
Create project files and folders.
Methods included from Depot::Tasks
Constructor Details
#initialize(orders = {}) ⇒ Recruit
orders are the options given to a recruit
10 11 12 13 14 |
# File 'lib/bootcamp/recruit.rb', line 10 def initialize(orders = {}) self.class.instance_methods.each do |meth| instance_variable_set("@#{meth}", orders[meth]) if orders.key?(meth) end end |
Instance Attribute Details
#framework ⇒ Object
Returns the value of attribute framework.
7 8 9 |
# File 'lib/bootcamp/recruit.rb', line 7 def framework @framework end |
#project ⇒ Object
Returns the value of attribute project.
7 8 9 |
# File 'lib/bootcamp/recruit.rb', line 7 def project @project end |
#test_suite ⇒ Object
Returns the value of attribute test_suite.
7 8 9 |
# File 'lib/bootcamp/recruit.rb', line 7 def test_suite @test_suite end |
Instance Method Details
#initialize_plugin ⇒ Object
Set actual plugin
29 30 |
# File 'lib/bootcamp/recruit.rb', line 29 def initialize_plugin end |
#prepare_tests ⇒ Object
Create plugin tests
33 34 |
# File 'lib/bootcamp/recruit.rb', line 33 def prepare_tests end |
#recon_library ⇒ Object
Get the library based off the project
21 22 |
# File 'lib/bootcamp/recruit.rb', line 21 def recon_library end |
#run_manifest ⇒ Object
Read proper manifest documents
25 26 |
# File 'lib/bootcamp/recruit.rb', line 25 def run_manifest end |
#setup_project ⇒ Object
Create project files and folders
17 18 |
# File 'lib/bootcamp/recruit.rb', line 17 def setup_project end |