Class: Lono::Template

Inherits:
Command show all
Defined in:
lib/lono/template/context.rb,
lib/lono/template.rb

Overview

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

Defined Under Namespace

Modules: AwsService, Helper Classes: Bashify, Context, DSL, Template, Upload

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch, website

Instance Method Details

#bashify(path) ⇒ Object



30
31
32
# File 'lib/lono/template.rb', line 30

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

#generateObject



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

def generate
  DSL.new(options.clone).run
end

#uploadObject



24
25
26
# File 'lib/lono/template.rb', line 24

def upload
  Upload.new(options.clone).run
end