lib/bolt/application.rb
# Create a new project-level plan.
#
# @param name [String] The name of the new plan.
# @param puppet [Boolean] Create a Puppet language plan.
# @param plan_script [String] Reference to the script to run in the new plan.
# @return [Boolean]
#
Create a new project-level plan.
Create a new project - level plan .
def new_plan(name, puppet: false, plan_script: nil)
      Bolt::PlanCreator.validate_plan_name(config.project, name)
      if plan_script
        Bolt::Util.validate_file('script', find_file(plan_script))
      end
      Bolt::PlanCreator.create_plan(config.project.plans_path,
                                    name,
                                    is_puppet: puppet,
                                    script: plan_script)
    end
def new_plan ( name , puppet : false , plan_script : nil ) Bolt :: PlanCreator . validate_plan_name ( config . project , name ) if plan_script Bolt :: Util . validate_file ( 'script' , find_file ( plan_script ) ) end Bolt :: PlanCreator . create_plan ( config . project . plans_path , name , is_puppet : puppet , script : plan_script ) end
Create a new project-level plan.
Create a new project - level plan .
None
Boolean
name
The name of the new plan.
The name of the new plan .
puppet
Create a Puppet language plan.
Create a Puppet language plan .
plan_script
Reference to the script to run in the new plan.
Reference to the script to run in the new plan .