lib/engineyard-metadata/insider.rb in engineyard-metadata-0.0.7 vs lib/engineyard-metadata/insider.rb in engineyard-metadata-0.1.0
- old
+ new
@@ -19,9 +19,14 @@
define_method name do
chef_dna.send name
end
end
+ def clear
+ @chef_dna = nil
+ @amazon_ec2_api = nil
+ end
+
# An adapter that reads from the EngineYard AppCloud /etc/chef/dna.json file.
def chef_dna
@chef_dna ||= ChefDna.new
end