Class: Roro::Configurators::StructureBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/roro/configurators/structure_builder.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#structureObject (readonly)

Returns the value of attribute structure.



6
7
8
# File 'lib/roro/configurators/structure_builder.rb', line 6

def structure
  @structure
end

Class Method Details

.baseObject



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/roro/configurators/structure_builder.rb', line 12

def self.base
  @structure = {
    actions: [''],
    dependencies: {},
    depends_on: [''],
    env: {
      base: {},
      ci: {},
      development: {},
      staging: {},
      production: {}
    },
    preface: '',
    questions: [
      {
        question: '',
        help: '',
        action: ''
      }
    ],
    success: ''
  }
end

.build(override = nil) ⇒ Object



8
9
10
# File 'lib/roro/configurators/structure_builder.rb', line 8

def self.build(override=nil)
  base.merge(override ||= {})
end