Class: Chef::Knife::HadoopHdfsUpdate

Inherits:
Chef::Knife show all
Includes:
HadoopBase
Defined in:
lib/chef/knife/hadoop_hdfs_update.rb

Instance Method Summary collapse

Methods included from HadoopBase

#db_connection, #hdfs_connection, included, #locate_config_value, #msg_pair

Instance Method Details

#runObject



48
49
50
51
52
53
# File 'lib/chef/knife/hadoop_hdfs_update.rb', line 48

def run
  $stdout.sync = true

  hdfs_connection.rename("#{Chef::Config[:knife][:path]}", 
                         "#{Chef::Config[:knife][:newpath]}")
end