Sha256: 41d8161c89aabff31c5f235fa811744b2dc93bafbea37156847207996ccb9c25

Contents?: true

Size: 688 Bytes

Versions: 1

Compression:

Stored size: 688 Bytes

Contents

class InfrastructureStack < CloudstackCli::Base

  desc "create STACKFILE", "create a infrastructure stack"
  def create(stackfile)
    stack = parse_file(stackfile)
    say "Create '#{stack["name"]}' infrastructure stack...", :green

    Domain.new.create_domains(stack['domains'])

    say "Infrastructure stack '#{stack["name"]}' finished.", :green
  end

  desc "destroy STACKFILE", "destroy a infrastructure stack"
  def destroy(stackfile)
    stack = parse_file(stackfile)
    say "Destroy '#{stack["name"]}' infrastructure stack...", :green



    Domain.new.delete_domains(stack['domains'].reverse)
    say "Infrastructure stack '#{stack["name"]}' finished.", :green
  end



end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cloudstack-cli-1.0.0.rc4 lib/cloudstack-cli/commands/infrastructure_stack.rb