Class: Ra10ke::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Ra10ke::RakeTask
- Includes:
- Dependencies, Deprecation, Duplicates, Install, Solve, Syntax, Validate
- Defined in:
- lib/ra10ke.rb
Constant Summary
Constants included from Validate
Validate::BAD_EMOJI, Validate::GOOD_EMOJI
Constants included from Dependencies
Dependencies::BAD_EMOJI, Dependencies::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 Deprecation
Methods included from Dependencies
#define_task_dependencies, #define_task_print_git_conversion
Methods included from Syntax
Methods included from Solve
#define_task_solve_dependencies
Constructor Details
#initialize(*args) {|_self| ... } ⇒ RakeTask
Returns a new instance of RakeTask.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/ra10ke.rb', line 26 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_deprecation(*args) define_task_duplicates(*args) define_task_install(*args) define_task_validate(*args) define_task_print_git_conversion(*args) end end |
Instance Attribute Details
#basedir ⇒ Object
Returns the value of attribute basedir.
24 25 26 |
# File 'lib/ra10ke.rb', line 24 def basedir @basedir end |
#force ⇒ Object
Returns the value of attribute force.
24 25 26 |
# File 'lib/ra10ke.rb', line 24 def force @force end |
#moduledir ⇒ Object
Returns the value of attribute moduledir.
24 25 26 |
# File 'lib/ra10ke.rb', line 24 def moduledir @moduledir end |
#puppetfile_name ⇒ Object
Returns the value of attribute puppetfile_name.
24 25 26 |
# File 'lib/ra10ke.rb', line 24 def puppetfile_name @puppetfile_name end |
#puppetfile_path ⇒ Object
Returns the value of attribute puppetfile_path.
24 25 26 |
# File 'lib/ra10ke.rb', line 24 def puppetfile_path @puppetfile_path end |
#purge ⇒ Object
Returns the value of attribute purge.
24 25 26 |
# File 'lib/ra10ke.rb', line 24 def purge @purge end |
Instance Method Details
#get_puppetfile ⇒ Object
48 49 50 51 52 53 |
# File 'lib/ra10ke.rb', line 48 def get_puppetfile R10K::Puppetfile.new(@basedir, @moduledir, @puppetfile_path, @puppetfile_name, @force) rescue ArgumentError # R10k < 2.6.0 R10K::Puppetfile.new(@basedir, @moduledir, @puppetfile_path || File.join(@basedir, @puppetfile_name || 'Puppetfile')) end |