Module: TerraspaceBundler::Core

Extended by:
Memoist
Included in:
TerraspaceBundler
Defined in:
lib/terraspace_bundler/core.rb

Constant Summary collapse

@@logger =
nil
@@update_mode =
false

Instance Method Summary collapse

Instance Method Details

#configObject



14
15
16
# File 'lib/terraspace_bundler/core.rb', line 14

def config
  Config.instance.config
end

#dslObject

DSL is evaluated once lazily when it get used



19
20
21
22
23
# File 'lib/terraspace_bundler/core.rb', line 19

def dsl
  dsl = Dsl.new
  dsl.run
  dsl
end

#loggerObject



6
7
8
# File 'lib/terraspace_bundler/core.rb', line 6

def logger
  config.logger
end

#logger=(v) ⇒ Object



10
11
12
# File 'lib/terraspace_bundler/core.rb', line 10

def logger=(v)
  @@logger = v
end

#update_modeObject Also known as: update_mode?



27
28
29
# File 'lib/terraspace_bundler/core.rb', line 27

def update_mode
  @@update_mode
end

#update_mode=(v) ⇒ Object



32
33
34
# File 'lib/terraspace_bundler/core.rb', line 32

def update_mode=(v)
  @@update_mode = v
end