Module: Verto::DSL

Defined in:
lib/verto/dsl.rb,
lib/verto/dsl/file.rb,
lib/verto/dsl/hook.rb,
lib/verto/dsl/syntax.rb,
lib/verto/dsl/interpreter.rb,
lib/verto/dsl/built_in_hooks.rb,
lib/verto/dsl/update_changelog.rb,
lib/verto/dsl/update_changelog/filtered_by.rb,
lib/verto/dsl/update_changelog/with_commit_messages.rb,
lib/verto/dsl/update_changelog/with_merged_pull_requests.rb

Defined Under Namespace

Modules: BuiltInHooks, Syntax Classes: File, Hook, Interpreter, UpdateChangelog

Class Method Summary collapse

Class Method Details

.interpreterObject



11
12
13
# File 'lib/verto/dsl.rb', line 11

def self.interpreter
  @interpreter ||= Interpreter.new
end

.load_file(filepath) ⇒ Object



5
6
7
8
9
# File 'lib/verto/dsl.rb', line 5

def self.load_file(filepath)
  vertofile_content = IO.read(filepath)

  interpreter.evaluate(vertofile_content)
end

.reset_interpreter!Object



15
16
17
# File 'lib/verto/dsl.rb', line 15

def self.reset_interpreter!
  @interpreter = nil
end