lib/kumogata/client.rb in kumogata-0.1.0 vs lib/kumogata/client.rb in kumogata-0.1.1
- old
+ new
@@ -43,11 +43,11 @@
update_stack(template, stack_name)
nil
end
def delete(stack_name)
- if @options.force? or agree("Aare you sure you want to delete `#{stack_name}`? ".yellow)
+ if @options.force? or agree("Are you sure you want to delete `#{stack_name}`? ".yellow)
delete_stack(stack_name)
end
nil
end
@@ -117,10 +117,18 @@
else
k.gsub('::', '__')
end
end
- Dslh.deval(template, :key_conv => key_conv, :exclude_key => exclude_key)
+ value_conv = proc do |v|
+ if v.kind_of?(String) and v =~ /\A(?:0|[1-9]\d*)\Z/
+ v.to_i
+ else
+ v
+ end
+ end
+
+ Dslh.deval(template, :key_conv => key_conv, :value_conv => value_conv, :exclude_key => exclude_key)
end
def define_template_func(scope)
scope.instance_eval do
def _user_data(data)