Class: Soltius::TerraformModule::RakeTasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Soltius::TerraformModule::RakeTasks
- Defined in:
- lib/soltius/terraform_module/rake_tasks.rb
Overview
Terraform Rake task generator.
Instance Attribute Summary collapse
-
#contract ⇒ Object
Returns the value of attribute contract.
-
#fixtures ⇒ Object
Returns the value of attribute fixtures.
-
#fixtures_path ⇒ Object
Returns the value of attribute fixtures_path.
-
#integration ⇒ Object
Returns the value of attribute integration.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path = '') {|self| ... } ⇒ RakeTasks
constructor
Creates Terraform Rake tasks and allows the callee to configure it.
Constructor Details
#initialize(path = '') {|self| ... } ⇒ RakeTasks
Creates Terraform Rake tasks and allows the callee to configure it.
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/soltius/terraform_module/rake_tasks.rb', line 15 def initialize(path = '') @fixtures = true @contract = true @integration = true @path = path @fixtures_path = "#{@path}/test/fixtures/*.tfvars" yield self if block_given? task_fixtures if @fixtures task_contract if @contract task_integration if @integration end |
Instance Attribute Details
#contract ⇒ Object
Returns the value of attribute contract.
11 12 13 |
# File 'lib/soltius/terraform_module/rake_tasks.rb', line 11 def contract @contract end |
#fixtures ⇒ Object
Returns the value of attribute fixtures.
11 12 13 |
# File 'lib/soltius/terraform_module/rake_tasks.rb', line 11 def fixtures @fixtures end |
#fixtures_path ⇒ Object
Returns the value of attribute fixtures_path.
11 12 13 |
# File 'lib/soltius/terraform_module/rake_tasks.rb', line 11 def fixtures_path @fixtures_path end |
#integration ⇒ Object
Returns the value of attribute integration.
11 12 13 |
# File 'lib/soltius/terraform_module/rake_tasks.rb', line 11 def integration @integration end |
#path ⇒ Object
Returns the value of attribute path.
11 12 13 |
# File 'lib/soltius/terraform_module/rake_tasks.rb', line 11 def path @path end |