Class: RubyYacht::Hook

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_yacht/dsl/hook.rb

Overview

This class provides a hook that a user or plugin can provide to customize the app images.

You can configure this with RubyYacht::Hook::DSL

Defined Under Namespace

Classes: Behavior, CommandBehavior, CopyFileBehavior, DSL, EnvironmentVariableBehavior

Constant Summary collapse

EVENT_TIMES =

The permitted values for the event_time attribute.

[:before, :after, :during]
EVENT_TYPES =

The permitted values for the event_type attribute.

[:startup, :build_checkout, :install_libraries]

Instance Attribute Summary collapse

Instance Attribute Details

#app_server_typeObject

The type of app server that this hook applies to.



20
21
22
# File 'lib/ruby_yacht/dsl/hook.rb', line 20

def app_server_type
  @app_server_type
end

#behaviorsObject

The behaviors that we will run for this hook.



32
33
34
# File 'lib/ruby_yacht/dsl/hook.rb', line 32

def behaviors
  @behaviors
end

#container_typeObject

The type of container that this hook applies to.



29
30
31
# File 'lib/ruby_yacht/dsl/hook.rb', line 29

def container_type
  @container_type
end

#database_server_typeObject

The type of database server that this hook applies to.



23
24
25
# File 'lib/ruby_yacht/dsl/hook.rb', line 23

def database_server_type
  @database_server_type
end

#event_timeObject

When this hook should take effect, relative to the event.



14
15
16
# File 'lib/ruby_yacht/dsl/hook.rb', line 14

def event_time
  @event_time
end

#event_typeObject

The type of event that this hook is attached to.



17
18
19
# File 'lib/ruby_yacht/dsl/hook.rb', line 17

def event_type
  @event_type
end

#web_server_typeObject

The type of web server that this hook applies to.



26
27
28
# File 'lib/ruby_yacht/dsl/hook.rb', line 26

def web_server_type
  @web_server_type
end