Method: Warg::Host#create_directory
- Defined in:
- lib/warg.rb
#create_directory(directory) ⇒ Object
828 829 830 831 832 833 834 835 836 837 |
# File 'lib/warg.rb', line 828 def create_directory(directory) command = "mkdir -p #{directory}" connection.open_channel do |channel| channel.exec(command) channel.wait end connection.loop end |