Class: Lono::Template

Inherits:
Command show all
Defined in:
lib/lono/template/context.rb,
lib/lono/template.rb,
lib/lono/template/util.rb,
lib/lono/template/upload.rb,
lib/lono/template/evaluate.rb,
lib/lono/template/generator.rb,
lib/lono/template/post_processor.rb,
lib/lono/template/configset_injector.rb

Overview

Encapsulates helper methods and instance variables to be rendered in the ERB templates.

Defined Under Namespace

Modules: AwsService, Evaluate, Helper, Strategy, Util Classes: Bashify, ConfigsetInjector, Context, Generator, PostProcessor, Template, Upload

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch, exit_on_failure?, website

Instance Method Details

#bashify(path) ⇒ Object



20
21
22
# File 'lib/lono/template.rb', line 20

def bashify(path)
  Bashify.new(options.merge(path: path)).run
end

#generate(blueprint) ⇒ Object



9
10
11
# File 'lib/lono/template.rb', line 9

def generate(blueprint)
  Generator.new(options.merge(blueprint: blueprint)).run
end

#upload(blueprint) ⇒ Object



14
15
16
# File 'lib/lono/template.rb', line 14

def upload(blueprint)
  Upload.new(options.merge(blueprint: blueprint)).run
end