Class: Nito::Cp

Inherits:
Object
  • Object
show all
Defined in:
lib/nito/cp.rb

Instance Method Summary collapse

Constructor Details

#initialize(src, dst, perm = 0644) ⇒ Cp

@@pass = nil



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/nito/cp.rb', line 7

def initialize(src, dst, perm = 0644)
  @src = src
  @dst = dst
  @perm = perm
  if ID == "0"
    root
  else
    #@@pass = Pass.new if ! @@pass
    sudo
  end
end