Sha256: 059f545e962dc1121769cd91582c6f6ebcccb6986ce6818ce1f954edcf91d065

Contents?: true

Size: 525 Bytes

Versions: 9

Compression:

Stored size: 525 Bytes

Contents

class KuberKit::Shell::BashCommands
  def rm(shell, path)
    shell.exec!(%Q{rm "#{path}"})
  end

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

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

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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kuber_kit-0.1.8 lib/kuber_kit/shell/bash_commands.rb
kuber_kit-0.1.7 lib/kuber_kit/shell/bash_commands.rb
kuber_kit-0.1.6 lib/kuber_kit/shell/bash_commands.rb
kuber_kit-0.1.5 lib/kuber_kit/shell/bash_commands.rb
kuber_kit-0.1.4 lib/kuber_kit/shell/bash_commands.rb
kuber_kit-0.1.3 lib/kuber_kit/shell/bash_commands.rb
kuber_kit-0.1.2 lib/kuber_kit/shell/bash_commands.rb
kuber_kit-0.1.1 lib/kuber_kit/shell/bash_commands.rb
kuber_kit-0.1.0 lib/kuber_kit/shell/bash_commands.rb