lib/engineyard-metadata/insider.rb in engineyard-metadata-0.1.0 vs lib/engineyard-metadata/insider.rb in engineyard-metadata-0.1.1
- old
+ new
@@ -24,9 +24,14 @@
def clear
@chef_dna = nil
@amazon_ec2_api = nil
end
+ # You can't get the list of environment names while you're on the instances themselves.
+ def environment_names
+ raise CannotGetFromHere
+ end
+
# An adapter that reads from the EngineYard AppCloud /etc/chef/dna.json file.
def chef_dna
@chef_dna ||= ChefDna.new
end