Module: Naksh::Systems::Ruby

Defined in:
lib/old/systems/ruby.rb

Class Method Summary collapse

Class Method Details

.delete(file_path) ⇒ Object



10
11
12
# File 'lib/old/systems/ruby.rb', line 10

def Ruby.delete(file_path)
  File.del(file_path)
end

.make_dir(dir_name, folder = Naksh.current_dir) ⇒ Object



13
14
15
# File 'lib/old/systems/ruby.rb', line 13

def Ruby.make_dir(dir_name,folder=Naksh.current_dir)
  File.mkdir(dir_name,folder=Naksh.current_dir)
end

.make_file(file_name, folder = Naksh.current_dir) ⇒ Object



16
17
# File 'lib/old/systems/ruby.rb', line 16

def Ruby.make_file(file_name,folder=Naksh.current_dir)
end

.move(file_path, destination_dir) ⇒ Object



18
19
20
# File 'lib/old/systems/ruby.rb', line 18

def Ruby.move(file_path,destination_dir)
  File.mv(file_path,destination_dir)
end

.rename(file_path, new_name) ⇒ Object



21
22
23
# File 'lib/old/systems/ruby.rb', line 21

def Ruby.rename(file_path,new_name)
  File.rename(file_path,new_name)
end