Methods

Files

Class/Module Index [+]

Quicksearch

Chef::Knife::Upload

Public Instance Methods

run() click to toggle source
# File lib/chef/knife/upload.rb, line 36
def run
  if name_args.length == 0
    show_usage
    ui.fatal("Must specify at least one argument.  If you want to upload everything in this directory, type \"knife upload .\"")
    exit 1
  end

  pattern_args.each do |pattern|
    Chef::ChefFS::FileSystem.copy_to(pattern, local_fs, chef_fs, config[:recurse] ? nil : 1, config)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.