lib/jenkins_pipeline_builder/view.rb
# Initializes a new View object.
#
# @param generator [Generator] the client object
#
# @return [View] the view object
#
Initializes a new View object.
Initializes a new View object .
def clean_up_views(params)
      if params[:parent_view]
        create_base_view(params[:parent_view], 'nestedView') unless exists?(params[:parent_view])
        delete(params[:name], params[:parent_view]) if exists?(params[:name], params[:parent_view])
      elsif exists?(params[:name])
        delete(params[:name])
      end
    end
def clean_up_views ( params ) if params [ :parent_view ] create_base_view ( params [ :parent_view ] , 'nestedView' ) unless exists? ( params [ :parent_view ] ) delete ( params [ :name ] , params [ :parent_view ] ) if exists? ( params [ :name ] , params [ :parent_view ] ) elsif exists? ( params [ :name ] ) delete ( params [ :name ] ) end end
Initializes a new View object.
Initializes a new View object .
# If we have a parent view, we need to do some additional checks
the view object
the view object
View
params
generator
the client object
the client object