lib/jenkins_pipeline_builder/view.rb
def generate(path)
      hash = if path.end_with? 'json'
               JSON.parse(IO.read(path))
             else
               YAML.load_file(path)
             end

      hash.each do |item|
        Utils.symbolize_keys_deep!(item)
        create(item[:view]) if item[:view]
      end
    end
# 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 generate(path)
      hash = if path.end_with? 'json'
               JSON.parse(IO.read(path))
             else
               YAML.load_file(path)
             end
      hash.each do |item|
        Utils.symbolize_keys_deep!(item)
        create(item[:view]) if item[:view]
      end
    end
def generate ( path ) hash = if path . end_with? 'json' JSON . parse ( IO . read ( path ) ) else YAML . load_file ( path ) end hash . each do | item | Utils . symbolize_keys_deep! ( item ) create ( item [ :view ] ) if item [ :view ] end end
Initializes a new View object.
Initializes a new View object .
the view object
the view object
View
path
generator
the client object
the client object