Sha256: 3b28b9267437585aef382b6d843f8860c8c57c118a2e7103949b4ad36d9193a5

Contents?: true

Size: 574 Bytes

Versions: 8

Compression:

Stored size: 574 Bytes

Contents

# Copyright (c) 2012-2013 Stark & Wayne, LLC

module Bosh; module Bootstrap; module Cli; module Commands; end; end; end; end

require "bosh-bootstrap/cli/helpers"

# Runs SSH to the microbosh server
class Bosh::Bootstrap::Cli::Commands::Delete
  include Bosh::Bootstrap::Cli::Helpers

  def perform
    chdir(deployment_dir) do
      run "bosh", "-n", "micro", "deployment", bosh_name
      run "bosh", "-n", "micro", "delete"
    end
  end

  protected
  def bosh_name
    settings.bosh.name
  end

  def deployment_dir
    File.join(settings_dir, "deployments")
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bosh-bootstrap-0.18.1 lib/bosh-bootstrap/cli/commands/delete.rb
bosh-bootstrap-0.18.0 lib/bosh-bootstrap/cli/commands/delete.rb
bosh-bootstrap-0.17.1 lib/bosh-bootstrap/cli/commands/delete.rb
bosh-bootstrap-0.17.0 lib/bosh-bootstrap/cli/commands/delete.rb
bosh-bootstrap-0.16.2 lib/bosh-bootstrap/cli/commands/delete.rb
bosh-bootstrap-0.16.1 lib/bosh-bootstrap/cli/commands/delete.rb
bosh-bootstrap-0.16.0 lib/bosh-bootstrap/cli/commands/delete.rb
bosh-bootstrap-0.15.0 lib/bosh-bootstrap/cli/commands/delete.rb