Class: Kozo::Upgrade

Inherits:
Object
  • Object
show all
Defined in:
lib/kozo/upgrade.rb,
lib/kozo/upgrade/1_initial.rb,
lib/kozo/upgrade/2_remove_kozo_version.rb

Direct Known Subclasses

Initial, RemoveKozoVersion

Defined Under Namespace

Classes: Initial, RemoveKozoVersion

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(state) ⇒ Upgrade

Returns a new instance of Upgrade.



7
8
9
# File 'lib/kozo/upgrade.rb', line 7

def initialize(state)
  @state = state
end

Instance Attribute Details

#stateObject (readonly)

Returns the value of attribute state.



5
6
7
# File 'lib/kozo/upgrade.rb', line 5

def state
  @state
end

Instance Method Details

#upgradeObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/kozo/upgrade.rb', line 11

def upgrade
  raise NotImplementedError
end