Class: Lono::Importer::Base

Inherits:
AbstractBase show all
Includes:
Download, Thor::Actions, Thor::Base
Defined in:
lib/lono/importer/base.rb

Direct Known Subclasses

Dsl, Erb

Instance Method Summary collapse

Methods included from Download

#download_template, #json?, #read_source

Methods inherited from AbstractBase

#reinitialize, #template_path

Methods included from Blueprint::Root

#find_blueprint_root, #set_blueprint_root

Constructor Details

#initialize(options) ⇒ Base

Returns a new instance of Base.



7
8
9
10
11
12
# File 'lib/lono/importer/base.rb', line 7

def initialize(options)
  reinitialize(options)
  @source = options[:source]
  @tmp_path = "/tmp/lono/import/template.yml"
  self.destination_root = Dir.pwd # Thor::Actions require destination_root to be set
end