Sha256: def68bd41e348edd75e4e17e36df10b1a54f578381e2ec569b5f3f95e33f0752

Contents?: true

Size: 289 Bytes

Versions: 2

Compression:

Stored size: 289 Bytes

Contents

require 'pathname'

module AwsEc2
  module Core
    @@config = nil
    def config
      @@config ||= Config.new.settings
    end

    def env
      ENV['AWS_EC2_ENV'] || 'development'
    end

    def root
      path = ENV['AWS_EC2_ROOT'] || '.'
      Pathname.new(path)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aws-ec2-0.5.0 lib/aws_ec2/core.rb
aws-ec2-0.4.0 lib/aws_ec2/core.rb