Sha256: 7e13e790981dea5a517df77b896030fb9a32f4bc2e4ec86100ae6869f3f395d4

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

module Cifrado
  class Saio < Thor

    desc 'destroy', 'Destroy bootstrapped server'
    option :server_name,  :type => :string, :default => 'cifrado-saio'
    def destroy
      s = service.servers.find {|s| s.name == options[:server_name] }
      if s
        Log.info "Destroying server #{options[:server_name]}."
        s.destroy 
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cifrado-0.1 lib/cifrado/cli/saio/destroy.rb