Class: Ra10ke::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Ra10ke::RakeTask
- Includes:
- Dependencies, Duplicates, Install, Solve, Syntax, Validate
- Defined in:
- lib/ra10ke.rb
Constant Summary
Constants included from Validate
Validate::BAD_EMOJI, Validate::GOOD_EMOJI
Instance Attribute Summary collapse
-
#basedir ⇒ Object
Returns the value of attribute basedir.
-
#force ⇒ Object
Returns the value of attribute force.
-
#moduledir ⇒ Object
Returns the value of attribute moduledir.
-
#puppetfile_name ⇒ Object
Returns the value of attribute puppetfile_name.
-
#puppetfile_path ⇒ Object
Returns the value of attribute puppetfile_path.
-
#purge ⇒ Object
Returns the value of attribute purge.
Instance Method Summary collapse
- #get_puppetfile ⇒ Object
-
#initialize(*args) {|_self| ... } ⇒ RakeTask
constructor
A new instance of RakeTask.
Methods included from Validate
Methods included from Install
Methods included from Duplicates
Methods included from Dependencies
Methods included from Syntax
Methods included from Solve
#define_task_solve_dependencies
Constructor Details
#initialize(*args) {|_self| ... } ⇒ RakeTask
Returns a new instance of RakeTask.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/ra10ke.rb', line 24 def initialize(*args) @basedir = Dir.pwd @moduledir = nil @puppetfile_path = nil @puppetfile_name = nil @force = nil @purge = false yield(self) if block_given? namespace :r10k do define_task_solve_dependencies(*args) define_task_syntax(*args) define_task_dependencies(*args) define_task_duplicates(*args) define_task_install(*args) define_task_validate(*args) end end |
Instance Attribute Details
#basedir ⇒ Object
Returns the value of attribute basedir.
22 23 24 |
# File 'lib/ra10ke.rb', line 22 def basedir @basedir end |
#force ⇒ Object
Returns the value of attribute force.
22 23 24 |
# File 'lib/ra10ke.rb', line 22 def force @force end |
#moduledir ⇒ Object
Returns the value of attribute moduledir.
22 23 24 |
# File 'lib/ra10ke.rb', line 22 def moduledir @moduledir end |
#puppetfile_name ⇒ Object
Returns the value of attribute puppetfile_name.
22 23 24 |
# File 'lib/ra10ke.rb', line 22 def puppetfile_name @puppetfile_name end |
#puppetfile_path ⇒ Object
Returns the value of attribute puppetfile_path.
22 23 24 |
# File 'lib/ra10ke.rb', line 22 def puppetfile_path @puppetfile_path end |
#purge ⇒ Object
Returns the value of attribute purge.
22 23 24 |
# File 'lib/ra10ke.rb', line 22 def purge @purge end |
Instance Method Details
#get_puppetfile ⇒ Object
44 45 46 |
# File 'lib/ra10ke.rb', line 44 def get_puppetfile R10K::Puppetfile.new(@basedir, @moduledir, @puppetfile_path, @puppetfile_name, @force) end |