lib/yun/config.rb in yun-0.0.4 vs lib/yun/config.rb in yun-0.0.5
- old
+ new
@@ -21,9 +21,17 @@
def self.chef_repo
setting[:chef_repo]
end
+ def self.get_image os_name
+ setting[:os][os_name.to_sym][:image]
+ end
+
+ def self.get_user os_name
+ setting[:os][os_name.to_sym][:user]
+ end
+
private
def self.setting
@setting ||= YAML.load_file(config_file)[:default]
end