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.9.3 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.9.2 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.9.0 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.8.8 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.8.7 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.8.6 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.8.5 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.8.4 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.8.3 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.8.2 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.8.1 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.8.0 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.7.1 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.7.0 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.6.4 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.6.3 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.6.2 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.6.1 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.6.0 lib/kuber_kit/shell/commands/bash_commands.rb
kuber_kit-0.5.10 lib/kuber_kit/shell/commands/bash_commands.rb