class AwsProvisioner::Environment
Public Class Methods
configure(environments, current)
click to toggle source
# File lib/aws_provisioner/environment.rb, line 8 def self.configure(environments, current) if !environments.include?(current) raise InvalidEnvironment end @@environments = environments @@current = current end
current()
click to toggle source
# File lib/aws_provisioner/environment.rb, line 21 def self.current @@current end
current?(environment)
click to toggle source
# File lib/aws_provisioner/environment.rb, line 25 def self.current?(environment) current == environment end
environments()
click to toggle source
# File lib/aws_provisioner/environment.rb, line 17 def self.environments @@environments.keys end