Method: Bolt::PlanCreator.segment_plan_name
- Defined in:
- lib/bolt/plan_creator.rb
.segment_plan_name(plan_name) ⇒ Object
98 99 100 101 102 103 104 105 106 |
# File 'lib/bolt/plan_creator.rb', line 98 def self.segment_plan_name(plan_name) prefix, *name_segments, basename = plan_name.split('::') # If the plan name is just the project name, then create an 'init' plan. # Otherwise, use the last name segment for the plan's filename. basename ||= 'init' [prefix, name_segments, basename] end |