class ReleaseFile
Release file just gives us some handy short hand for defining variables inside a file, e.g:
x 1 y 2
Sets the configuration variables x and y to 1 and 2 respectively, plus it supports blocks and comments
Constants
- FileNotFoundError
- RELEASE_FILE
- RELEASE_PATH
Attributes
variables[R]
Public Class Methods
new(path = RELEASE_PATH)
click to toggle source
# File lib/release_party/release_file.rb, line 20 def initialize(path = RELEASE_PATH) @variables = {} raise FileNotFoundError, "No Releasefile found name at #{path}" unless File.exists?(path) eval File.read(path) end
Public Instance Methods
method_missing(method_id, *args, &block)
click to toggle source
# File lib/release_party/release_file.rb, line 27 def method_missing(method_id, *args, &block) @variables[method_id.to_sym] = args.first || block end