lib/chef/knife/kitchen.rb in knife-solo-0.0.9 vs lib/chef/knife/kitchen.rb in knife-solo-0.0.10

- old
+ new

@@ -3,14 +3,14 @@ class Chef class Knife class Kitchen < Knife include FileUtils - banner "knife kitchen NAME" + banner "knife kitchen NAME or initialize current directory with '.'" def run name = @name_args.first - mkdir name + mkdir name if name != '.' %w(nodes roles data_bags site-cookbooks cookbooks).each do |dir| mkdir name + "/#{dir}" touch name + "/#{dir}/.gitkeep" end File.open(name + "/solo.rb", 'w') do |f|