Sha256: d3e14d624ed2c11f960fb3b1929e245af5d60062f39f7d7a0e3147876f76142c

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

#    This file is part of EC2 on Rails.
#    http://rubyforge.org/projects/ec2onrails/
#
#    Copyright 2007 Paul Dowman, http://pauldowman.com/
#
#    EC2 on Rails is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    EC2 on Rails is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

require "yaml"

module Ec2onrails
  module VersionHelper
    ROOT_DIR = File.dirname(__FILE__) + "/../.."
    
    def self.string
      File.read(ROOT_DIR + "/VERSION").strip
    end
    
    def self.ami_ids
      YAML::load_file(ROOT_DIR + "/ami_ids.yml")
    end
  end
end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
ec2onrails-xtreme-head-0.0.7 lib/ec2onrails/version_helper.rb
ec2onrails-multiapp-0.9.11 lib/ec2onrails/version_helper.rb
ec2onrails-experimental-0.9.11 lib/ec2onrails/version_helper.rb