Class: Packerman::Dsl::Builders::Googlecompute

Inherits:
Packerman::Dsl::Builders show all
Defined in:
lib/packerman/dsl/builders/googlecompute.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Packerman::Dsl::Builders

communicator_keys, hash_key

Methods included from Node

#initialize, #method_missing, #to_hash

Methods inherited from Packerman::Dsl

register, register_to_repo, to_subclass

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Packerman::Dsl::Node

Class Method Details

.optional_keysObject



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/packerman/dsl/builders/googlecompute.rb', line 15

def optional_keys
  [
    :account_file,
    :disk_size,
    :image_name,
    :image_description,
    :instance_name,
    :machine_type,
    :metadata,
    :network,
    :state_timeout,
    :tags,
    :use_internal_ip
  ]
end

.require_keysObject



7
8
9
10
11
12
13
# File 'lib/packerman/dsl/builders/googlecompute.rb', line 7

def require_keys
  [
    :project_id,
    :source_image,
    :zone
  ]
end

Instance Method Details

#typeObject



2
3
4
# File 'lib/packerman/dsl/builders/googlecompute.rb', line 2

def type
  "googlecompute"
end