Class: Nito::Cp
- Inherits:
-
Object
- Object
- Nito::Cp
- Defined in:
- lib/nito/cp.rb
Instance Method Summary collapse
-
#initialize(src, dst, perm = 0644) ⇒ Cp
constructor
@@pass = nil.
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 |