Module: Ec2onrails::VersionHelper

Defined in:
lib/ec2onrails/version_helper.rb

Constant Summary collapse

ROOT_DIR =
File.dirname(__FILE__) + "/../.."

Class Method Summary collapse

Class Method Details

.ami_idsObject



29
30
31
# File 'lib/ec2onrails/version_helper.rb', line 29

def self.ami_ids
  YAML::load_file(ROOT_DIR + "/ami_ids.yml")
end

.stringObject



25
26
27
# File 'lib/ec2onrails/version_helper.rb', line 25

def self.string
  File.read(ROOT_DIR + "/VERSION").strip
end