Sha256: f195e4231c4e706496b61272505c36f386ba84096a735c6581bbda4f975cdb02

Contents?: true

Size: 424 Bytes

Versions: 13

Compression:

Stored size: 424 Bytes

Contents

class KuberKit::Shell::Commands::DockerCommands
  def build(shell, build_dir, args = [])
    default_args = ["--rm=true"]
    args_list = (default_args + args).join(" ")

    shell.exec!(%Q{docker build #{build_dir} #{args_list}})
  end

  def tag(shell, image_name, tag_name)
    shell.exec!(%Q{docker tag #{image_name} #{tag_name}})
  end

  def push(shell, tag_name)
    shell.exec!(%Q{docker push #{tag_name}})
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
kuber_kit-0.3.1 lib/kuber_kit/shell/commands/docker_commands.rb
kuber_kit-0.3.0 lib/kuber_kit/shell/commands/docker_commands.rb
kuber_kit-0.2.9 lib/kuber_kit/shell/commands/docker_commands.rb
kuber_kit-0.2.8 lib/kuber_kit/shell/commands/docker_commands.rb
kuber_kit-0.2.7 lib/kuber_kit/shell/commands/docker_commands.rb
kuber_kit-0.2.6 lib/kuber_kit/shell/commands/docker_commands.rb
kuber_kit-0.2.5 lib/kuber_kit/shell/commands/docker_commands.rb
kuber_kit-0.2.4 lib/kuber_kit/shell/commands/docker_commands.rb
kuber_kit-0.2.3 lib/kuber_kit/shell/commands/docker_commands.rb
kuber_kit-0.2.2 lib/kuber_kit/shell/commands/docker_commands.rb
kuber_kit-0.2.1 lib/kuber_kit/shell/commands/docker_commands.rb
kuber_kit-0.2.0 lib/kuber_kit/shell/commands/docker_commands.rb
kuber_kit-0.1.9 lib/kuber_kit/shell/commands/docker_commands.rb