Class: Terradactyl::Terraform::Commands::Upgrade

Inherits:
Base
  • Object
show all
Defined in:
lib/terradactyl/commands.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



23
24
25
26
27
28
# File 'lib/terradactyl/commands.rb', line 23

def execute
  VersionManager.install
  return 0 unless revision.upgradeable?

  super
end

#next_versionObject



30
31
32
# File 'lib/terradactyl/commands.rb', line 30

def next_version
  @next_version ||= compute_upgrade
end