Module: Bashy_Dir::Base

Includes:
Get_Set::DSL
Included in:
Bashy_Dir
Defined in:
lib/Bashy/Bashy_Dir.rb

Instance Method Summary collapse

Instance Method Details

#createObject



10
11
12
# File 'lib/Bashy/Bashy_Dir.rb', line 10

def create
  run %@ #{sudo} mkdir -p #{path} @
end

#deleteObject



14
15
16
# File 'lib/Bashy/Bashy_Dir.rb', line 14

def delete
  run %@ #{sudo} rm -r #{path} @
end