class Automux::Core::Blueprint

Attributes

name[R]
path[R]
source_blueprint[R]

Public Class Methods

build_by_name(name) click to toggle source
# File lib/automux/core/blueprint.rb, line 24
def build_by_name(name)
  path = File.join(Automux::Paths.blueprints_container, "#{ name }.yml")
  new(path)
end
new(path) click to toggle source
# File lib/automux/core/blueprint.rb, line 6
def initialize(path)
  @name = File.basename(path, '.yml')
  @path = path
end

Public Instance Methods

read(options = []) click to toggle source
# File lib/automux/core/blueprint.rb, line 11
def read(options = [])
  Automux::Library::YamlParser.load_file(path, options)
end
source=(blueprint) click to toggle source
# File lib/automux/core/blueprint.rb, line 19
def source=(blueprint)
  @source_blueprint = blueprint
end