Class: Getch::States

Inherits:
Object
  • Object
show all
Defined in:
lib/getch/states.rb

Instance Method Summary collapse

Constructor Details

#initializeStates

Returns a new instance of States.



7
8
9
10
# File 'lib/getch/states.rb', line 7

def initialize
  @file = File.join('/tmp/install_gentoo.yaml')
  load_state
end

Instance Method Details

#bootloaderObject



62
63
64
65
# File 'lib/getch/states.rb', line 62

def bootloader
  STATES[:bootloader] = true
  save
end

#finalizeObject



67
68
69
70
# File 'lib/getch/states.rb', line 67

def finalize
  STATES[:finalize] = true
  save
end

#formatObject



17
18
19
20
# File 'lib/getch/states.rb', line 17

def format
  STATES[:format] = true
  save
end

#luks_keysObject



57
58
59
60
# File 'lib/getch/states.rb', line 57

def luks_keys
  STATES[:luks_keys] = true
  save
end

#mountObject



22
23
24
25
# File 'lib/getch/states.rb', line 22

def mount
  STATES[:mount] = true
  save
end

#partitionObject



12
13
14
15
# File 'lib/getch/states.rb', line 12

def partition
  STATES[:partition] = true
  save
end

#post_configObject



42
43
44
45
# File 'lib/getch/states.rb', line 42

def post_config
  STATES[:post_config] = true
  save
end

#pre_configObject



32
33
34
35
# File 'lib/getch/states.rb', line 32

def pre_config
  STATES[:pre_config] = true
  save
end

#servicesObject



52
53
54
55
# File 'lib/getch/states.rb', line 52

def services
  STATES[:services] = true
  save
end

#tarballObject



27
28
29
30
# File 'lib/getch/states.rb', line 27

def tarball
  STATES[:tarball] = true
  save
end

#terraformObject



47
48
49
50
# File 'lib/getch/states.rb', line 47

def terraform
  STATES[:terraform] = true
  save
end

#updateObject



37
38
39
40
# File 'lib/getch/states.rb', line 37

def update
  STATES[:update] = true
  save
end