Class: Ironfan::Provider::Static

Inherits:
IaasProvider show all
Defined in:
lib/ironfan/headers.rb,
lib/ironfan/provider/static.rb,
lib/ironfan/provider/static/machine.rb

Defined Under Namespace

Classes: Machine

Class Method Summary collapse

Methods inherited from IaasProvider

#ensure_prerequisites!, machine_class, #save!

Methods inherited from Ironfan::Provider

aggregate!, forget!, load, prepare!, receive, #resources, validate

Methods inherited from Builder

ui, #ui

Class Method Details

.applicable(computer) ⇒ Object


18
19
20
# File 'lib/ironfan/provider/static.rb', line 18

def self.applicable(computer)
  computer.server and computer.server.clouds.include?(:static)
end

.ensure_tags(tags, fog) ⇒ Object


10
11
12
13
14
15
16
# File 'lib/ironfan/provider/static.rb', line 10

def self.ensure_tags(tags,fog)
  #  Ironfan.safely do
  #    config = {:key => k, :value => v.to_s, :resource_id => fog.id }
  #    connection.tags.create(config)
  #  end
  #end
end

.resourcesObject


6
7
8
# File 'lib/ironfan/provider/static.rb', line 6

def self.resources
  [ Machine ]
end