Class: KuberKit::Shell::Commands::BashCommands

Inherits:
Object
  • Object
show all
Defined in:
lib/kuber_kit/shell/commands/bash_commands.rb

Instance Method Summary collapse

Instance Method Details

#cp(shell, source_path, dest_path) ⇒ Object



10
11
12
# File 'lib/kuber_kit/shell/commands/bash_commands.rb', line 10

def cp(shell, source_path, dest_path)
  shell.exec!(%Q{cp "#{source_path}" "#{dest_path}"})
end

#cp_r(shell, source_path, dest_path) ⇒ Object



14
15
16
# File 'lib/kuber_kit/shell/commands/bash_commands.rb', line 14

def cp_r(shell, source_path, dest_path)
  shell.exec!(%Q{cp -r "#{source_path}" "#{dest_path}"})
end

#mkdir(shell, path) ⇒ Object



18
19
20
# File 'lib/kuber_kit/shell/commands/bash_commands.rb', line 18

def mkdir(shell, path)
  shell.exec!(%Q{mkdir "#{path}"})
end

#mkdir_p(shell, path) ⇒ Object



22
23
24
# File 'lib/kuber_kit/shell/commands/bash_commands.rb', line 22

def mkdir_p(shell, path)
  shell.exec!(%Q{mkdir -p "#{path}"})
end

#rm(shell, path) ⇒ Object



2
3
4
# File 'lib/kuber_kit/shell/commands/bash_commands.rb', line 2

def rm(shell, path)
  shell.exec!(%Q{rm "#{path}"})
end

#rm_rf(shell, path) ⇒ Object



6
7
8
# File 'lib/kuber_kit/shell/commands/bash_commands.rb', line 6

def rm_rf(shell, path)
  shell.exec!(%Q{rm -rf "#{path}"})
end