class Bosh::AwsCliPlugin::MigrationProxy
Attributes
name[R]
version[R]
Public Class Methods
new(name, version)
click to toggle source
# File lib/bosh_cli_plugin_aws/migrator.rb, line 110 def initialize(name, version) @name = name @version = version.to_i end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/bosh_cli_plugin_aws/migrator.rb, line 124 def <=>(other) version <=> other.version end
eql?(other)
click to toggle source
# File lib/bosh_cli_plugin_aws/migrator.rb, line 120 def eql?(other) version == other.version end
hash()
click to toggle source
# File lib/bosh_cli_plugin_aws/migrator.rb, line 128 def hash (name.to_s + version.to_s).hash end
load_class()
click to toggle source
# File lib/bosh_cli_plugin_aws/migrator.rb, line 115 def load_class require File.join(MigrationHelper.aws_migration_directory, "#{version}_#{name}") Object.const_get(MigrationHelper.to_class_name(name)) end
to_hash()
click to toggle source
# File lib/bosh_cli_plugin_aws/migrator.rb, line 132 def to_hash {"name" => name, "version" => version} end