Class: Foggy::Cloud

Inherits:
Object
  • Object
show all
Defined in:
lib/foggy/foggy.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Cloud

Returns a new instance of Cloud.



5
6
7
# File 'lib/foggy/foggy.rb', line 5

def initialize(*args)
  @cloud = Misty::Cloud.new(*args)
end

Instance Method Details

#alarmingObject



14
15
16
# File 'lib/foggy/foggy.rb', line 14

def alarming
  @alarming ||= build_service(Foggy::Alarming, @cloud.alarming)
end

#application_catalogObject



18
19
20
# File 'lib/foggy/foggy.rb', line 18

def application_catalog
  @application_catalog ||= build_service(Foggy::ApplicationCatalog, @cloud.application_catalog)
end

#backupObject



22
23
24
# File 'lib/foggy/foggy.rb', line 22

def backup
  @backup ||= build_service(Foggy::Backup, @cloud.backup)
end

#baremetalObject



26
27
28
# File 'lib/foggy/foggy.rb', line 26

def baremetal
  @baremetal ||= build_service(Foggy::Baremetal, @cloud.baremetal)
end

#block_storageObject



30
31
32
# File 'lib/foggy/foggy.rb', line 30

def block_storage
  @block_storage ||= build_service(Foggy::BlockStorage, @cloud.block_storage)
end

#build_service(klass, service) ⇒ Object



9
10
11
12
# File 'lib/foggy/foggy.rb', line 9

def build_service(klass, service)
  klass.create_method(:service) { service }
  klass.new
end

#clusteringObject



34
35
36
# File 'lib/foggy/foggy.rb', line 34

def clustering
  @clustering ||= build_service(Foggy::Clustering, @cloud.clustering)
end

#computeObject



38
39
40
# File 'lib/foggy/foggy.rb', line 38

def compute
  @compute ||= build_service(Foggy::Compute, @cloud.compute)
end

#containerObject



42
43
44
# File 'lib/foggy/foggy.rb', line 42

def container
  @container ||= build_service(Foggy::Container, @cloud.container)
end

#data_processingObject



46
47
48
# File 'lib/foggy/foggy.rb', line 46

def data_processing
  @data_processing ||= build_service(Foggy::DataProcessing, @cloud.data_processing)
end

#data_protectionObject



50
51
52
# File 'lib/foggy/foggy.rb', line 50

def data_protection
  @data_protection ||= build_service(Foggy::DataProtection, @cloud.data_protection)
end

#databaseObject



54
55
56
# File 'lib/foggy/foggy.rb', line 54

def database
  @database ||= build_service(Foggy::Database, @cloud.database)
end

#dnsObject



58
59
60
# File 'lib/foggy/foggy.rb', line 58

def dns
  @dns ||= build_service(Foggy::DNS, @cloud.dns)
end

#identityObject



62
63
64
# File 'lib/foggy/foggy.rb', line 62

def identity
  @identity ||= build_service(Foggy::Identity, @cloud.identity)
end

#imageObject



66
67
68
# File 'lib/foggy/foggy.rb', line 66

def image
  @image ||= build_service(Foggy::Image, @cloud.image)
end

#messagingObject



70
71
72
# File 'lib/foggy/foggy.rb', line 70

def messaging
  @messaging ||= build_service(Foggy::Messaging, @cloud.messaging)
end

#meteringObject



74
75
76
# File 'lib/foggy/foggy.rb', line 74

def metering
  @metering ||= build_service(Foggy::Metering, @cloud.metering)
end

#networkingObject



78
79
80
# File 'lib/foggy/foggy.rb', line 78

def networking
  @metering ||= build_service(Foggy::Networking, @cloud.networking)
end

#nvf_orchestrationObject



82
83
84
# File 'lib/foggy/foggy.rb', line 82

def nvf_orchestration
  @nvf_orchestration ||= build_service(Foggy::NFVOrchestration, @cloud.nvf_orchestration)
end

#object_storageObject



86
87
88
# File 'lib/foggy/foggy.rb', line 86

def object_storage
  @object_storage ||= build_service(Foggy::ObjectStorage, @cloud.object_storage)
end

#orchestrationObject



90
91
92
# File 'lib/foggy/foggy.rb', line 90

def orchestration
  @orchestration ||= build_service(Foggy::Orchestration, @cloud.orchestration)
end

#searchObject



94
95
96
# File 'lib/foggy/foggy.rb', line 94

def search
  @search ||= build_service(Foggy::Search, @cloud.search)
end

#shared_file_systemsObject



98
99
100
# File 'lib/foggy/foggy.rb', line 98

def shared_file_systems
  @shared_file_systems ||= build_service(Foggy::SharedFileSystems, @cloud.shared_file_systems)
end