Sha256: b49aba7717727d122c078515ec22a57a44f9a0d80317db4082dafa2138d9e0f1

Contents?: true

Size: 535 Bytes

Versions: 63

Compression:

Stored size: 535 Bytes

Contents

class KuberKit::Shell::Commands::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

63 entries across 63 versions & 1 rubygems

Version Path
kuber_kit-0.5.9 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.5.8 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.5.7 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.5.6 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.5.5 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.5.4 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.5.3 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.5.2 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.5.1 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.5.0 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.4.9 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.4.8 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.4.7 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.4.6 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.4.5 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.4.4 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.4.3 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.4.2 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.4.1 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.4.0 lib/kuber_kit/shell/commands/bash_commands.rb