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.



5
6
7
8
# File 'lib/getch/states.rb', line 5

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

Instance Method Details

#configObject



30
31
32
33
# File 'lib/getch/states.rb', line 30

def config
  STATES[:gentoo_config] = true
  save
end

#formatObject



15
16
17
18
# File 'lib/getch/states.rb', line 15

def format
  STATES[:format] = true
  save
end

#mountObject



20
21
22
23
# File 'lib/getch/states.rb', line 20

def mount
  STATES[:mount] = true
  save
end

#partitionObject



10
11
12
13
# File 'lib/getch/states.rb', line 10

def partition
  STATES[:partition] = true
  save
end

#stage3Object



25
26
27
28
# File 'lib/getch/states.rb', line 25

def stage3
  STATES[:gentoo_base] = true
  save
end

#updateObject



35
36
37
38
# File 'lib/getch/states.rb', line 35

def update
  STATES[:gentoo_update] = true
  save
end