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

#formatObject



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

def format
  STATES[:format] = true
  save
end

#partitionObject



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

def partition
  STATES[:partition] = true
  save
end