lib/kite/module.rb in kite-1.0.6 vs lib/kite/module.rb in kite-1.0.10
- old
+ new
@@ -7,11 +7,11 @@
desc 'init https://github.com/foo/bar-module', 'Initialize a kite module and render its vars.module.yml'
def init(path)
@env = options[:env]
@path = path
@name = path.gsub(/(.*:|.git)/, '').split('/').last
- @cloud = parse_cloud_config[@env]
+ @cloud = parse_cloud_config(@env)
@version = options[:version]
unless File.exist? path
@uri = path
@path = "modules/#{@name}"
@@ -34,10 +34,10 @@
def render(path)
@path = File.expand_path(path)
@name = @path.split('/').last
@env = options[:env]
@vars = load_vars
- @cloud = parse_cloud_config[@env]
+ @cloud = parse_cloud_config(@env)
say "Rendering files"
render_templates
end