Class: Getch::States
- Inherits:
-
Object
- Object
- Getch::States
- Defined in:
- lib/getch/states.rb
Instance Method Summary collapse
- #config ⇒ Object
- #format ⇒ Object
-
#initialize ⇒ States
constructor
A new instance of States.
- #mount ⇒ Object
- #partition ⇒ Object
- #stage3 ⇒ Object
- #update ⇒ Object
Constructor Details
#initialize ⇒ States
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
#config ⇒ Object
30 31 32 33 |
# File 'lib/getch/states.rb', line 30 def config STATES[:gentoo_config] = true save end |
#format ⇒ Object
15 16 17 18 |
# File 'lib/getch/states.rb', line 15 def format STATES[:format] = true save end |
#mount ⇒ Object
20 21 22 23 |
# File 'lib/getch/states.rb', line 20 def mount STATES[:mount] = true save end |
#partition ⇒ Object
10 11 12 13 |
# File 'lib/getch/states.rb', line 10 def partition STATES[:partition] = true save end |
#stage3 ⇒ Object
25 26 27 28 |
# File 'lib/getch/states.rb', line 25 def stage3 STATES[:gentoo_base] = true save end |
#update ⇒ Object
35 36 37 38 |
# File 'lib/getch/states.rb', line 35 def update STATES[:gentoo_update] = true save end |